Darkening and changing image values ​​using imread

2 ビュー (過去 30 日間)
Camilo Pardo
Camilo Pardo 2020 年 10 月 21 日
コメント済み: Camilo Pardo 2020 年 10 月 30 日
Previously I have worked with two radar images that are in .tif format and scaled in 8-bit integers, one of them P-Band and the other X-Band. In the Matlab script, when I use "imread" to input the P-Band image, it opens and the Workspace shows that it is a uint8 array, but the pixel values ​​change a lot and the image becomes noticeably darker compared to the The brightness of the image and the pixel values ​​that are displayed when working with other software such as PCI Geomatics or ArcGis.
The processing I do on the image is also affected. What can I do to correct this?

回答 (1 件)

Puru Kathuria
Puru Kathuria 2020 年 10 月 27 日
Hi,
You can try reading the image using read. You can start by creating a Tiff object and then read data from the TIFF file.
t = Tiff('peppers_RGB_tiled.tif','r');
imageData = read(t);
imshow(imageData);
title('Peppers Image (RGB)')
close(t);
Also, this is a useful thread that discusses reading .tif format.
I hope one of the two serves your requirement.
  1 件のコメント
Camilo Pardo
Camilo Pardo 2020 年 10 月 30 日
I thank you, shortly after posting the question, I solved the problem, I finally used imread to read the original image, as I was taking it as the output of PCI Geomatics rescaled in 8-bit integers. I mean, apparently the problem wasn’t matlab.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by