how many channels does ultrasound images have?Images Score Regression only regresses to the average of the target valuesHow to properly rotate image and labels for semantic segmentation data augmentation in Tensorflow?convert 16-Bit to 8-Bit imagesImages similarity using SIFT and AnnoyHow to determine frame rates to detect for video classificationHow to filter out babies from image datasetBasis vectors for categorical imagesIs it good in general to subtract background from a sequence of images for learning?How to determine key frames in a video for video classification?How can I detect blocks of text from scanned document images

Pronounciation of the combination "st" in spanish accents

Tikz: place node leftmost of two nodes of different widths

What are substitutions for coconut in curry?

Does the attack bonus from a Masterwork weapon stack with the attack bonus from Masterwork ammunition?

Is a party consisting of only a bard, a cleric, and a warlock functional long-term?

Four married couples attend a party. Each person shakes hands with every other person, except their own spouse, exactly once. How many handshakes?

How to generate binary array whose elements with values 1 are randomly drawn

Asserting that Atheism and Theism are both faith based positions

Turning a hard to access nut?

Writing in a Christian voice

Light propagating through a sound wave

Knife as defense against stray dogs

Do native speakers use "ultima" and "proxima" frequently in spoken English?

Why is there so much iron?

Calculate the frequency of characters in a string

Worshiping one God at a time?

I seem to dance, I am not a dancer. Who am I?

In the 1924 version of The Thief of Bagdad, no character is named, right?

Should I use acronyms in dialogues before telling the readers what it stands for in fiction?

How to get the n-th line after a grepped one?

What is the plural TO / OF something

Practical application of matrices and determinants

Probably overheated black color SMD pads

Existence of a celestial body big enough for early civilization to be thought of as a second moon



how many channels does ultrasound images have?


Images Score Regression only regresses to the average of the target valuesHow to properly rotate image and labels for semantic segmentation data augmentation in Tensorflow?convert 16-Bit to 8-Bit imagesImages similarity using SIFT and AnnoyHow to determine frame rates to detect for video classificationHow to filter out babies from image datasetBasis vectors for categorical imagesIs it good in general to subtract background from a sequence of images for learning?How to determine key frames in a video for video classification?How can I detect blocks of text from scanned document images













0












$begingroup$


I have some ultrasound images, when I read them using cv.imread and check their shape or check them with ndim it shows 3 channels:



im = cv.imread(data_path+'a1.jpg')
print(im.shape)
im = np.array(im)
print(im.ndim)

the output is:
(154, 139, 3)
3


but when I open them in photoshop and check their mode in Image>Mode it shows grayscale with 8 bit, also in windows properties> detail tab shows 8 bit:
enter image description here
anyone have any idea about that?










share|improve this question











$endgroup$











  • $begingroup$
    what's the format of the image?
    $endgroup$
    – Alireza Zolanvari
    2 days ago















0












$begingroup$


I have some ultrasound images, when I read them using cv.imread and check their shape or check them with ndim it shows 3 channels:



im = cv.imread(data_path+'a1.jpg')
print(im.shape)
im = np.array(im)
print(im.ndim)

the output is:
(154, 139, 3)
3


but when I open them in photoshop and check their mode in Image>Mode it shows grayscale with 8 bit, also in windows properties> detail tab shows 8 bit:
enter image description here
anyone have any idea about that?










share|improve this question











$endgroup$











  • $begingroup$
    what's the format of the image?
    $endgroup$
    – Alireza Zolanvari
    2 days ago













0












0








0





$begingroup$


I have some ultrasound images, when I read them using cv.imread and check their shape or check them with ndim it shows 3 channels:



im = cv.imread(data_path+'a1.jpg')
print(im.shape)
im = np.array(im)
print(im.ndim)

the output is:
(154, 139, 3)
3


but when I open them in photoshop and check their mode in Image>Mode it shows grayscale with 8 bit, also in windows properties> detail tab shows 8 bit:
enter image description here
anyone have any idea about that?










share|improve this question











$endgroup$




I have some ultrasound images, when I read them using cv.imread and check their shape or check them with ndim it shows 3 channels:



im = cv.imread(data_path+'a1.jpg')
print(im.shape)
im = np.array(im)
print(im.ndim)

the output is:
(154, 139, 3)
3


but when I open them in photoshop and check their mode in Image>Mode it shows grayscale with 8 bit, also in windows properties> detail tab shows 8 bit:
enter image description here
anyone have any idea about that?







image-preprocessing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









Alireza Zolanvari

19114




19114










asked 2 days ago









honar.cshonar.cs

9612




9612











  • $begingroup$
    what's the format of the image?
    $endgroup$
    – Alireza Zolanvari
    2 days ago
















  • $begingroup$
    what's the format of the image?
    $endgroup$
    – Alireza Zolanvari
    2 days ago















$begingroup$
what's the format of the image?
$endgroup$
– Alireza Zolanvari
2 days ago




$begingroup$
what's the format of the image?
$endgroup$
– Alireza Zolanvari
2 days ago










1 Answer
1






active

oldest

votes


















1












$begingroup$

What is happening has nothing to do with the type of image (ultrasound in this case). It has to do with the type of file (JPEG in this case). By default, cv.imread assumes it is a 3-channel color image. You can specify grayscale when calling cv.imread if appropriate. The last dimension (the color dimension) in the im object could be empty.



There is also depth info (8 bits per channel). The default is 8 bit, you could specify 16 bit or 32 bit if apporiate.



Do not rely on function or software defaults. It is better to work from first principles of the raw data.






share|improve this answer









$endgroup$












  • $begingroup$
    How can I check if my image is 3 channel or 1 channel? Is there any function to do that?
    $endgroup$
    – honar.cs
    2 days ago










  • $begingroup$
    simply spoken: gray == 1 channel, everything else 3
    $endgroup$
    – Andreas Look
    2 days ago










  • $begingroup$
    There is high-channel ultrasound that which can have 16, 48, 64, or 256 channels.
    $endgroup$
    – Brian Spiering
    2 days ago











Your Answer





StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "557"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f47357%2fhow-many-channels-does-ultrasound-images-have%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1












$begingroup$

What is happening has nothing to do with the type of image (ultrasound in this case). It has to do with the type of file (JPEG in this case). By default, cv.imread assumes it is a 3-channel color image. You can specify grayscale when calling cv.imread if appropriate. The last dimension (the color dimension) in the im object could be empty.



There is also depth info (8 bits per channel). The default is 8 bit, you could specify 16 bit or 32 bit if apporiate.



Do not rely on function or software defaults. It is better to work from first principles of the raw data.






share|improve this answer









$endgroup$












  • $begingroup$
    How can I check if my image is 3 channel or 1 channel? Is there any function to do that?
    $endgroup$
    – honar.cs
    2 days ago










  • $begingroup$
    simply spoken: gray == 1 channel, everything else 3
    $endgroup$
    – Andreas Look
    2 days ago










  • $begingroup$
    There is high-channel ultrasound that which can have 16, 48, 64, or 256 channels.
    $endgroup$
    – Brian Spiering
    2 days ago
















1












$begingroup$

What is happening has nothing to do with the type of image (ultrasound in this case). It has to do with the type of file (JPEG in this case). By default, cv.imread assumes it is a 3-channel color image. You can specify grayscale when calling cv.imread if appropriate. The last dimension (the color dimension) in the im object could be empty.



There is also depth info (8 bits per channel). The default is 8 bit, you could specify 16 bit or 32 bit if apporiate.



Do not rely on function or software defaults. It is better to work from first principles of the raw data.






share|improve this answer









$endgroup$












  • $begingroup$
    How can I check if my image is 3 channel or 1 channel? Is there any function to do that?
    $endgroup$
    – honar.cs
    2 days ago










  • $begingroup$
    simply spoken: gray == 1 channel, everything else 3
    $endgroup$
    – Andreas Look
    2 days ago










  • $begingroup$
    There is high-channel ultrasound that which can have 16, 48, 64, or 256 channels.
    $endgroup$
    – Brian Spiering
    2 days ago














1












1








1





$begingroup$

What is happening has nothing to do with the type of image (ultrasound in this case). It has to do with the type of file (JPEG in this case). By default, cv.imread assumes it is a 3-channel color image. You can specify grayscale when calling cv.imread if appropriate. The last dimension (the color dimension) in the im object could be empty.



There is also depth info (8 bits per channel). The default is 8 bit, you could specify 16 bit or 32 bit if apporiate.



Do not rely on function or software defaults. It is better to work from first principles of the raw data.






share|improve this answer









$endgroup$



What is happening has nothing to do with the type of image (ultrasound in this case). It has to do with the type of file (JPEG in this case). By default, cv.imread assumes it is a 3-channel color image. You can specify grayscale when calling cv.imread if appropriate. The last dimension (the color dimension) in the im object could be empty.



There is also depth info (8 bits per channel). The default is 8 bit, you could specify 16 bit or 32 bit if apporiate.



Do not rely on function or software defaults. It is better to work from first principles of the raw data.







share|improve this answer












share|improve this answer



share|improve this answer










answered 2 days ago









Brian SpieringBrian Spiering

4,1281029




4,1281029











  • $begingroup$
    How can I check if my image is 3 channel or 1 channel? Is there any function to do that?
    $endgroup$
    – honar.cs
    2 days ago










  • $begingroup$
    simply spoken: gray == 1 channel, everything else 3
    $endgroup$
    – Andreas Look
    2 days ago










  • $begingroup$
    There is high-channel ultrasound that which can have 16, 48, 64, or 256 channels.
    $endgroup$
    – Brian Spiering
    2 days ago

















  • $begingroup$
    How can I check if my image is 3 channel or 1 channel? Is there any function to do that?
    $endgroup$
    – honar.cs
    2 days ago










  • $begingroup$
    simply spoken: gray == 1 channel, everything else 3
    $endgroup$
    – Andreas Look
    2 days ago










  • $begingroup$
    There is high-channel ultrasound that which can have 16, 48, 64, or 256 channels.
    $endgroup$
    – Brian Spiering
    2 days ago
















$begingroup$
How can I check if my image is 3 channel or 1 channel? Is there any function to do that?
$endgroup$
– honar.cs
2 days ago




$begingroup$
How can I check if my image is 3 channel or 1 channel? Is there any function to do that?
$endgroup$
– honar.cs
2 days ago












$begingroup$
simply spoken: gray == 1 channel, everything else 3
$endgroup$
– Andreas Look
2 days ago




$begingroup$
simply spoken: gray == 1 channel, everything else 3
$endgroup$
– Andreas Look
2 days ago












$begingroup$
There is high-channel ultrasound that which can have 16, 48, 64, or 256 channels.
$endgroup$
– Brian Spiering
2 days ago





$begingroup$
There is high-channel ultrasound that which can have 16, 48, 64, or 256 channels.
$endgroup$
– Brian Spiering
2 days ago


















draft saved

draft discarded
















































Thanks for contributing an answer to Data Science Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f47357%2fhow-many-channels-does-ultrasound-images-have%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Is flight data recorder erased after every flight?When are black boxes used?What protects the location beacon (pinger) of a flight data recorder?Is there anywhere I can pick up raw flight data recorder information?Who legally owns the Flight Data Recorder?Constructing flight recorder dataWhy are FDRs and CVRs still two separate physical devices?What are the data elements shown on the GE235 flight data recorder (FDR) plot?Are CVR and FDR reset after every flight?What is the format of data stored by a Flight Data Recorder?How much data is stored in the flight data recorder per hour in a typical flight of an A380?Is a smart flight data recorder possible?

Is there a general name for the setup in which payoffs are not known exactly but players try to influence each other's perception of the payoffs?Osborne, Nash equilibria and the correctness of beliefsIs there a name for this family of games (Binomial games?)?Perfect Bayesian EquilibriumCalculating mixed strategy equilibrium in battle of sexesPure Strategy SPNEIs there a commitment mechanism which allows players to achieve pareto optimal solutions?Extensive Form GamesAn $n$-player prisoner's dilemma where a coalition of 2 players is better off defectingTit-For-Stat Strategy Best RepliesPotential solutions of the $n$-player Prisoner's Dilemma

Which is better: GPT or RelGAN for text generation?2019 Community Moderator ElectionWhat is the difference between TextGAN and LM for text generation?GANs (generative adversarial networks) possible for text as well?Generator loss not decreasing- text to image synthesisChoosing a right algorithm for template-based text generationHow should I format input and output for text generation with LSTMsGumbel Softmax vs Vanilla Softmax for GAN trainingWhich neural network to choose for classification from text/speech?NLP text autoencoder that generates text in poetic meterWhat is the interpretation of the expectation notation in the GAN formulation?What is the difference between TextGAN and LM for text generation?How to prepare the data for text generation task