Thread Subject: Converting raster graphics into vector graphics in matlab

Subject: Converting raster graphics into vector graphics in matlab

From: abe.cool@gmail.com

Date: 19 Aug, 2008 12:58:07

Message: 1 of 1

Thank u sir,but if u have got any codes or tutorials please let me
know...

Walter Roberson wrote:
> In article <557f2ef2-62a8-422a-8468-5d766fd1ff78@k37g2000hsf.googlegroups.com>,
> <abe.cool@gmail.com> wrote:
>
> >I just want to convert bitmap image in to vector format by using
> >MATLAB, If u knw pls reply me with the answer
>
> Yeh, I've done that, in Fortran years ago, and more recently
> in Maple and in Matlab. It isn't a difficult process, but it is
> common for the fine details to get messed up in the first few
> iterations of writing the code, at least if you write it iteratively
> instead of recursively.
>
> Probably the easiest way to do it iteratively is to use the "left-hand
> rule" (or the "right-hand rule") for maze-solving: find an edge and
> follow it around, always checking for possible turns in counter-clockwise
> (or clockwise) sequence. Each time you proceed in the same direction
> you were already going, just keep track of where you started this
> segment and where you are now; each time you change direction,
> write out the vector between the old starting point and the current
> location and record the current location as the new base of movement.
> Oh yes, and as you pass through a point, mark that point has having
> been travelled through in an auxillary matrix. When you complete a
> circuit (get back to where you started the current trip), scan
> through the auxillary matrix to find another location that is
> beside one that has been already visitied, but which hasn't been
> visited yet.
>
> The logic can, if you prefer, be divided into two parts, one part
> where you track pixel locations on the path, and the other part
> that analyzes the completed path to minimize the turns.
>
> I haven't described here the logic for dealing with blobs of
> colour; the extension of the logic is not very difficult.
> --
> "Okay, buzzwords only. Two syllables, tops." -- Laurie Anderson

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com