how to convert a 3d image to 2d image ?

2 views (last 30 days)
Shahd Ewawi
Shahd Ewawi on 5 Apr 2013
I got this error
Attempted to access bwZ(3,2812); index out of bounds because size(bwZ)=[632,937,3].
this because bwZ is a 3d image does anyone know how to convert a 3d image to 2d image ?

Answers (1)

Image Analyst
Image Analyst on 5 Apr 2013
Edited: Image Analyst on 5 Apr 2013
I don't think your question is the one that should be asked. If your color image has 632 rows, and 937 columns, and three color channels (R, G, and B) or volumetric layers, then the real question that should be asked is "what were you thinking when you try to access the 2812th column in the 3rd row? And with no color channel specified."

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!