reading bands in .tiff file.

4 Ansichten (letzte 30 Tage)
Keerthana N
Keerthana N am 24 Nov. 2021
Kommentiert: yanqi liu am 26 Nov. 2021
I have decomposed sentinel-1 SLC image. The result gave the Entropy image whose pixel value ranges from 0 to 1(image has only one band). the image is converted to .tiff file. and imported to Matlab. the image array is showing values in the grey scale i.e. 0-255, But the band having entropy value is also showing same values in gray scale. How to get entropy values from the image which is in the range(0-1).
the code i have followed as follows
[entropy, R] = readgeoraster("subset_2_of_S1A_IW_SLC__1SDV_20211028T004043_20211028T004110_040312_04C6EF_A357_Spk_Decomp_TC_Cnv.tif");
info = geotiffinfo("subset_2_of_S1A_IW_SLC__1SDV_20211028T004043_20211028T004110_040312_04C6EF_A357_Spk_Decomp_TC_Cnv.tif");
Entropy_val = entropy(:,:,1);

Akzeptierte Antwort

yanqi liu
yanqi liu am 25 Nov. 2021
yes,sir,may be use
entropy = mat2gray(entropy);
  5 Kommentare
Walter Roberson
Walter Roberson am 25 Nov. 2021
We will need to have a look at the way that you convert the hdr img files to tiff
yanqi liu
yanqi liu am 26 Nov. 2021
yes,sir,as up friend suggest,use im2doule、double(matrix)/255 can get double value

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by