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
$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:
anyone have any idea about that?
image-preprocessing
$endgroup$
add a comment |
$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:
anyone have any idea about that?
image-preprocessing
$endgroup$
$begingroup$
what's the format of the image?
$endgroup$
– Alireza Zolanvari
2 days ago
add a comment |
$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:
anyone have any idea about that?
image-preprocessing
$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:
anyone have any idea about that?
image-preprocessing
image-preprocessing
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
add a comment |
$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
add a comment |
1 Answer
1
active
oldest
votes
$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.
$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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
$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.
$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
add a comment |
$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.
$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
add a comment |
$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.
$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.
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
add a comment |
$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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
$begingroup$
what's the format of the image?
$endgroup$
– Alireza Zolanvari
2 days ago