Create a mask based on pixel values
12 ビュー (過去 30 日間)
古いコメントを表示
I want to have my code be able to create a mask based on a range of pixel values. For example, if a part of the images' pixels range from 50-125, I want it to only mask that range
0 件のコメント
回答 (1 件)
Rik
2020 年 3 月 16 日
IM = uint8(randi(255,100,80));
L= IM >=50 & IM <=125;
2 件のコメント
ali eskandari
2021 年 2 月 17 日
I want to substract two images and show the results in another figure. For instance, if the subtraction matrix has 0 value indicate the elements with black, if it has negative value show them with red and if it has positive value show with blue. How can I do that?
参考
カテゴリ
Help Center および File Exchange で Author Block Masks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!