MATLAB Answers


matlab help required for image

Asked by Lalit Patil on 12 Oct 2012

In this image there is a laser strip. I want to detect it sharply like a single line drawn. So, please give me a code.


This forum is not intended for other people to do your work. It is intended to help you understand Matlab, and help you with Matlab problems. What have you done so far?

I am relly sorry for this kind of language... Actually i have to develope a 3D and I have written a matlab code but it detects all the values of maximum pixel intensity and plots it.. so there is a spreading using scatter3 command... So, i just want to know is it possible to get sharp strip and which method can be applied, like fft or LMS etc.or any logic.?

Log in to comment.

1 Answer

Answer by Image Analyst
on 12 Oct 2012
 Accepted Answer

Convert to grayscale, threshold, call bwmorph() to skeletonize.

  1 Comment

Thank you very very much sir... I get it solved....

Log in to comment.

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!