How can I first create the mask and apply to the image obtained from the AVIRIS sensor?

3 views (last 30 days)
I have the .TIFF file image which is 2500 band image. I want to read the image but it is impossible to read such large image. I thought of creating the ROI mask and apply to image and read only the ROI portion of image?
How can I created the ROI mask and apply to an image?

Answers (1)

Milan Bansal
Milan Bansal on 5 Oct 2023
Hi Meghraj Kc,
As per my understanding you want to know how to create Region of Interest (RoI) mask for a large multiband image as you are not able to read it.
It is possible to read such a large multiband image by using "multibandread" function in MATLAB. Please refer to the example below for reading a multiband image.
filename = 'multibandImage.tif'; % Replace with the actual filename and path
image = multibandread(filename, [height, width, 2500], 'uint16', 0, 'bsq');
Please refer to the below documentation link to learn more about "multibandread" function.
Please refer to the following MATLAB Answer which solves a similar problem.
There are a number of ways to create RoI masks for an image depending upon the shapes, color-range, and use-cases.
Please refer to the following documentation link to learn about different functions for "RoI-Based Processing".
Hope it helps!

Community Treasure Hunt

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

Start Hunting!