how to pass a variable into imadjust?
古いコメントを表示
Hi,
I wish to pass the contrast limits in the imadjust using a variable.
I tried in this way but it didn't work. I'll get a value for lower contrast limit using a input dialog box.
lowerContrast=str2num(answer{1});
lowContLimit=sprintf('%d',lowerContrast);
imgadj=imadjust(imgreen,[lowContLimit,1],[]);
but i am getting an error as
Function imadjust expected its second input argument, [LOW_IN; HIGH_IN] to be a two-element vector.
Can anyone help me.
2 件のコメント
Deepak M D
2014 年 12 月 18 日
編集済み: Deepak M D
2014 年 12 月 18 日
lowerContrast=str2num(answer{1});
lowContLimit=sprintf('%d',lowerContrast);
imgadj=imadjust(imgreen,[val1 val2]);
such that 0<= val1 <=1 and 0<=val2 <=1
and val1 < val2
Manoj Kumar
2014 年 12 月 18 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Contrast Adjustment についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!