may i know how we want to measure the depth for car tire thread?

4 views (last 30 days)
currently im doing a research to measure the thread depth at car tire using matlab. so far im still stuck at extraction stage. kindly give me an idea how to measure the depth on car tire. tq
  8 Comments
Jon
Jon on 30 Mar 2016
Edited: Jon on 30 Mar 2016
Maybe you set an upper threshold (around 7, say) and take the average height of all pixels greater than your threshold. This gives you a datum to work from. Then set a lower threshold (around 5, say) and create an matrix where only pixels with a height lower than 5 are included. This image should include all the treads along with the smaller isolated pock marks. Then you can do bwlabel or bwconncomp to find the largest connected blob (the treads should all be connected) and remove the smaller blobs. Finally, take the average height of that largest blob and subtract it from the average height of the datum, and that's a measure of tread depth. Looks like a fun problem!

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 30 Mar 2016
Edited: Image Analyst on 30 Mar 2016
How did you obtain this image? Did you use a proper profilometer to get height/depth information? Or do you have just some snapshot from your phone you took (and so are out of luck)?
Is the data in a proper image file format? If not, then please use your reading program to get it into a matrix and attach to your original image with in a .mat file. Then we can try things on it. Jon's suggestion is what I'd start with. Something like
mask = depthImage < 6;
meanDepth = mean(depthImage(mask))
If the tops are not flat then you should correct for that in your image capture setup. Otherwise you might have to estimate the tops using the mask and original image, and the roifill() function. Then you can subtract the original image from the flat top image to get better estimates of the depth in a curved-top situation.
  7 Comments
Image Analyst
Image Analyst on 30 Mar 2016
You would need that along with how separated the first camera position was from the second camera position. See this: http://www.mathworks.com/products/computer-vision/features.html#camera-calibration
alef imran
alef imran on 30 Mar 2016
Ohh sure. Thanx btw. I will figure it out and share it when I succeed.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!