Why titles are flipped vertically in the following code?

6 ビュー (過去 30 日間)
soe
soe 2018 年 12 月 31 日
コメント済み: Snehil Singh 2021 年 5 月 2 日
%Please change the file formats into tif first
clear;
clc;
close all;
I=imread('Fig0316(1)(top_left).tif');
I1=imread('Fig0316(2)(2nd_from_top).tif');
I2=imread('Fig0316(3)(third_from_top).tif');
I3=imread('Fig0316(4)(bottom_left).tif');
[nk, rk]=imhist(I);
[nk1, rk1]=imhist(I1);
[nk2, rk2]=imhist(I2);
[nk3, rk3]=imhist(I3);
figure('Name','Images with different contrast','NumberTitle','off');
subplot(2,4,1)
imshow(I);
title('Brighter Image');
subplot(2,4,2)
imshow(I1);
title('Low Contrast Image');
subplot(2,4,3)
imshow(I2);
title('High Contrast Image');
subplot(2,4,4)
imshow(I3);
title('Darker Image');
subplot(2,4,5)
bar(rk,nk);
title('histogram for Brigher Image');
subplot(2,4,6)
bar(rk1,nk1);
title('histogram for Low Contrast Image');
subplot(2,4,7)
bar(rk2,nk2);
title('histogram for High Contrast Image');
subplot(2,4,8)
bar(rk3,nk3);
title('histogram for Darker Image');
  6 件のコメント
soe
soe 2019 年 1 月 1 日
I'm using MATLAB R2013a.
Here is like that.
Snehil Singh
Snehil Singh 2021 年 5 月 2 日
'imhist' requires Image Processing Toolbox.
Error in Untitled3 (line 8)
[nk, rk]=imhist(I);
How to resolve this error

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

採用された回答

Cris LaPierre
Cris LaPierre 2019 年 1 月 1 日
That's weird. It's not a common issue - it'd be all over the place if it were. After some searching, I found this post saying there can be issues with some ATI graphics cards. Try the suggestions there (updating graphics drivers, switching renderer) and let us know if that solved the problem.

その他の回答 (1 件)

soe
soe 2019 年 1 月 2 日
Thank you so much!
opengl('software') command has solved my problem!

カテゴリ

Help Center および File ExchangeSubplots についてさらに検索

製品


リリース

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by