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

Are all passive ability checks floors for active ability checks?Does passive perception supersede active perception?Which skills can be used passively?Active Opposition with Free-Form Professions in Fate5E Trap/Ambush/Stealth Mechanics VS Passive Perception ConfusionInteraction between perception and stealth in obscured conditionsHow does Keen Sight affect Passive Perception?Are all d20 rolls either attacks, saves or ability checks?Can players declare that they are making a specific ability check?Can I see a Hidden creature that is not obscured at all?Can a Stealth check ever be made passively?Is this alternate version of the Observant feat balanced?What is the minimum amount of skill points per HD?

How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar ManaraDealing with clients who want more than what's in the contractHow to prepare for a client visit?How to handle undeservedly positive feedbackSupervisor apparently making it appear that our team underperformed and we indirectly caused client not to pay fullHow to progress my skills development as both the technical lead and youngest member on my team?Under performing employee will be fired if I ask for him off my teamwhat recommendations can I give to a colleague who is not preforming as well as expectedForcing usage of clients laptops because of VPN accessIs it acceptable to e-mail a client regarding potential opportunities in their company?Am I overly concerned about a newly hired Senior Developer with low performance?

Rank groups within a grouped sequence of TRUE/FALSE and NAGrouping functions (tapply, by, aggregate) and the *apply familyCharacters counting and subletting specific patternsWhat is the purpose of setting a key in data.table?data.table vs dplyr: can one do something well the other can't or does poorly?how to make a bar plot for a list of dataframes?How to group by unique values in a list in RPandas - Alternative to rank() function that gives unique ordinal ranks for a columnRank within group in for loop in RData transformation: from dyadic to observational data in RGetting map from purrr to work with paste0