extract pixels where value is greater or less than a specified value
6 ビュー (過去 30 日間)
古いコメントを表示
Hi how can i extract the list of pixels from imgf that are less than 93?
i have to only check the pixels that are in the ind variable.....
img = imread('images\vertebre.png');
imgf = medfilt2(img, [7 7]);
binf = 93;
bsup = 117;
ind = ([154718;155227;155228;155229;155736;155737;155739;155740;156247;156248;156249;156758]);
inf_seg = 93 < imgf; %%%%how do i make this line only check pixels that are in the ind variable....
0 件のコメント
回答 (1 件)
Image Analyst
2021 年 10 月 20 日
Use ismember() to determine if one set of values is contained within another set of values.
Not sure what ind represents. Linear indexes?
[ia, ib] = ismember(ind, find(inf_seg));
1 件のコメント
参考
カテゴリ
Help Center および File Exchange で Detection についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!