Got Questions? Get Answers.
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

Thread Subject:
edge extraction

Subject: edge extraction

From: Toan Cao

Date: 26 Feb, 2011 02:00:20

Message: 1 of 2

Hello everyone,
I have a gray image : http://i51.tinypic.com/55lawo.jpg
i would like to extract this image into 2 binary images: one image has only vertical lines, another one has only horizontal lines.
I try to use some morphological operators to implement on this image, but result is so bad because the brightness of lines and background are almost the same.
i hope that everyone will recommend for me some methods to do it better, looking forward to your reply.
Thanks in advance,
Toan

Subject: edge extraction

From: Image Analyst

Date: 5 Mar, 2011 02:58:06

Message: 2 of 2

"Toan Cao" <toancv3010@gmail.com> wrote in message <ik9mrk$r0s$1@fred.mathworks.com>...
> Hello everyone,
> I have a gray image : http://i51.tinypic.com/55lawo.jpg
> i would like to extract this image into 2 binary images: one image has only vertical lines, another one has only horizontal lines.
> I try to use some morphological operators to implement on this image, but result is so bad because the brightness of lines and background are almost the same.
> i hope that everyone will recommend for me some methods to do it better, looking forward to your reply.
> Thanks in advance,
> Toan
-----------------------------------------------------
Try conv2 with proper kernels, such as [-1 1 0] or [-1 1 0]'. Let me know how that goes. Come back here with your code if you have trouble.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us