How to display image above threshold?
古いコメントを表示
I am trying to display an image (X) above the noise threshold (N), where X is a matrix and N is a scalar. I don't want regions lesser than the noise to be displayed, rather they should be rendered white.
How can this be achieved?
採用された回答
その他の回答 (3 件)
mask = rawImage > N; %simple thresholding--adjust for your needs
maskedImage = rawImage; %copy image
maskedImage(~mask) = 255; %set all pixels that don't pass threshold to zero
imagesc(maskedImage) %view masked image
Venkatessh
2013 年 7 月 12 日
0 投票
2 件のコメント
Evan
2013 年 7 月 12 日
Glad you've got it working!
In cases where two users submit answers that solve your problem, it's best practice to accept the best available answer so that other users who come across this thread will be directed to it first. So you made the right choice in selecting Image Analyst's tutorial.
Image Analyst
2013 年 7 月 12 日
You can "vote" for both Answers but only "Accept" one.
shafaq nisar
2017 年 1 月 11 日
0 投票
Can you refer any research paper in which this code is used?
1 件のコメント
Image Analyst
2017 年 1 月 11 日
No, there are probably too many of them and masking with a threshold is such a basic operation that you're unlikely to find anything. It would be like asking if I can refer you to any reference papers that use addition or subtraction.
カテゴリ
ヘルプ センター および File Exchange で Image Preview and Device Configuration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
