Select rgb bands from hyperspectral images

조회 수: 1 (최근 30일)
valerio riso
valerio riso 2020년 4월 8일
댓글: valerio riso 2020년 4월 13일
I have a geotiff image with 48 bands and I want to select only red, green and blue bands. How can I do?
I have attached the info I get with imfinfo, thanks.

답변 (1개)

Rajani Mishra
Rajani Mishra 2020년 4월 13일
You can extract R,G,B bands from hyperspectral image by extracting bands present in the wavelength range of Red, Green, Blue. For this along with the image (GeoTIFF file) metadata of wavelength range present and spectral resolution (difference between two wavelength bands) is also required.
Say, after reading the image file data is in a cube form of size M*N*K where M is the height, N is the width and K is the range of wavelength bands present. You can get R, G, B bands by
DataCube(:,:,range) where range is the desired wavelength range.
Now, for GeoTIFF images before downloading the image have a look at the wavelength information of the Sensors this may help you with the metadata required.
  댓글 수: 1
valerio riso
valerio riso 2020년 4월 13일
Ok, so without metadata is impossible to recover rgb bands, right? The problem is that I am doing a project in which I have to binarize this image first (it's a project of object detection), and I have only the image without any other specifics. Is there a way to binarize correctly the original image with 48 bands? Or I have to recover necessarily the rgb bands? Thanks.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Display Point Clouds에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by