how to separate some pixel intensity values of a image matrix in matlab ?
Show older comments
let i have a image matrix like : A =
120 200 223 224 225
204 235 226 227 1
23 24 225 29 1
27 82 92 222 224
12 252 229 255 255
i want only those values within a range , for an example : values greater than 100 and less than 230 ( 230 > v > 100)
The output array or matrix will have only values within the range wit all repeated values.
Output = { 120,200,223,224,225,204,226,227,225,222,224,229}
how will I calculate it ?
Answers (1)
Thorsten
on 26 Nov 2014
Output = A(A > 100 & A < 230)
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!