extract pixels where value is greater or less than a specified value
5 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Image Analyst
on 20 Oct 2021
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 Comment
See Also
Categories
Find more on Detection in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!