Function for object detection that will accept MxNx4 tif file

I am running R2015b in Windows 10 with 16GB RAM. Toolbox add-ons: Image Acquisition, Image Processor, Image Region Analyzer, Color Thresholder, Image Segmenter, Stereo Camera Calibrator, Image Viewer and Video Viewer. I am trying to run an object detection program. The image file is 161MB with dimensions of 32x74x4. Here are the code and the error message: I = imread('data\53_seg_house2_tif.tif'); figure; imshow(I);
Error using images.internal.imageDisplayValidateParams>validateCData (line 115) Multi-plane image inputs must be RGB images of size MxNx3.
Is there a function that will accept an image that is MxNx4?

2 Comments

What generated this image? What do the 4 image planes represent?
The tif file in the program is cropped from ENVI 5.3. It is a high resolution image from ultracam. Three of the image planes represent the layers of red, green, blue intensity. But this image is more than just true color because it includes an infrared component. So the 4th plane must represent infrared, but I don't know how infrared could be represented in the context of "intensity" like R,G,B. Anyways, I think the imshow function is only for true color images, not those that include infrared.

Sign in to comment.

Answers (0)

Asked:

on 4 Nov 2015

Edited:

on 4 Nov 2015

Community Treasure Hunt

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

Start Hunting!