フィルターのクリア

How to validate contrast adjusting using imadjust comparing to other contrast adjusting techniques and original image?

2 ビュー (過去 30 日間)
I want to compare the difference between imadjust image and original image using a specific measurement o technique.Can you suggest any technique to show the differnce between original and imadjust image?

採用された回答

Image Analyst
Image Analyst 2019 年 1 月 23 日
You can cast the images to double then subtract them to see the differences
diffImage = double(image1) - double(image2);
imshow(diffImage, []);
impixelinfo;
You can also view the values in the workspace/variable inspector - just double-click on the variable name in the workspace panel.
  2 件のコメント
Nayana R
Nayana R 2019 年 1 月 23 日
Thank youfor your answer Image Analyst.
Nayana R
Nayana R 2019 年 1 月 23 日
Can you suggest any other method to show the difference using a value of a graph?

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

その他の回答 (1 件)

DGM
DGM 2023 年 7 月 9 日
編集済み: DGM 2023 年 7 月 9 日
The question and comments are vague, but this is my answer to one interpretation -- i.e. to use a graph to illustrate the transformation made to the image data. Consider a simple gamma adjustment. We should see a simple power function.
inpict = imread('tire.tif'); % original
outpict = imadjust(inpict,[0 1],[0 1],0.5); % adjusted
[xx idx] = sort(im2double(inpict(:)));
yy = im2double(outpict(idx));
plot([0 1],[0 1],':','color',[1 1 1]*0.5); hold on % reference line
plot(xx,yy) % the TF curve
xlim([0 1]); ylim([0 1])
axis square
grid on
Note that you'll only be able to draw the curve over the range represented by the images. Consider an image with a much lower dynamic range.
inpict = imread('pout.tif'); % original
outpict = imadjust(inpict,[0 1],[0 1],0.5); % adjusted
[xx idx] = sort(im2double(inpict(:)));
yy = im2double(outpict(idx));
plot([0 1],[0 1],':','color',[1 1 1]*0.5); hold on % reference line
plot(xx,yy) % the TF curve
xlim([0 1]); ylim([0 1])
axis square
grid on

カテゴリ

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