Matlab Pixel Measurement Question
Show older comments
I have images that are only black and white. The white pixels are essentially a streak that can have any orientation (it can look like \ or / or | etc). My question is can Matlab measure the overall length of each streak no matter what the orientation?
Might I add that I hope to do this with an algorithm (i.e. automatically)
7 Comments
Ryan
on 31 Aug 2012
Do you have access to the image processing toolbox? Can you post an example image?
Coulton
on 31 Aug 2012
Edited: Walter Roberson
on 31 Aug 2012
Image Analyst
on 31 Aug 2012
Is it in the same place every time (so we can crop out most of the clutter)? Will you allow manual method such as imdistline() or improfile()? You need to upload another image so we can see what kind of variation in the images could be encountered. Otherwise I'll simply go from one known pixel to another known pixel with improfile and threshold the profile to find the distance, but I doubt this approach will work for other images.
Walter Roberson
on 31 Aug 2012
Interestingly, similar images came up once before, http://www.mathworks.co.uk/matlabcentral/answers/25204-how-to-find-the-temperature-of-the-image
Coulton
on 1 Sep 2012
Image Analyst
on 2 Sep 2012
See my new code below.
Coulton
on 6 Sep 2012
Accepted Answer
More Answers (0)
Categories
Find more on Image Processing Toolbox 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!