0

I have a 3D Image represented in numpy array format. Shape is (60, 60, 15) , 60 width 60 height 15 frames deep.

Now I want to process this image further with another library. But this library requires an argument "channels". https://keras.io/layers/convolutional/#conv3d

What I don't get is how to find out how many channels my image has. Images are 3D MRI images: 1 slice:

example image

1 Answer 1

1

The channel represent usually the different colours used to code the image. For instance, in a RGB image, there is three channels: red, green and blue.

I guess your 3D image is coded with 1 channel (if each frame is code in Black & White) or 3 channels (if each frame is coded in colours).

Examples from the doc:

input_shape=(128, 128, 3) # for RGB pictures
input_shape=(128, 128, 128, 1) #  for 128x128x128 volumes with a single channel
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.