Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!nx02.iad01.newshosting.com!newshosting.com!64.59.134.4.MISMATCH!pd7cy3no!pd7cy4no!shaw.ca!pd7urf3no.POSTED!53ab2750!not-for-mail
X-Trace-PostClient-IP: 24.79.146.116
From: Walter Roberson <roberson@hushmail.com>
Organization: Canada Eat The Cookie Foundation
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
MIME-Version: 1.0
Newsgroups: comp.soft-sys.matlab
Subject: Re: Converting raster graphics into vector graphics in matlab
References: <557f2ef2-62a8-422a-8468-5d766fd1ff78@k37g2000hsf.googlegroups.com> 	<g4m1c0$caj$1@canopus.cc.umanitoba.ca> <4ee31594-76cf-4968-a9b4-d88d899c4c92@z11g2000prl.googlegroups.com> 	<WvAqk.196932$gc5.76419@pd7urf2no> <f184dc32-0297-4660-a8d2-9bc1f3144ba7@a3g2000prm.googlegroups.com>
In-Reply-To: <f184dc32-0297-4660-a8d2-9bc1f3144ba7@a3g2000prm.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 38
Message-ID: <wzAtk.50311$hx.7883@pd7urf3no>
Date: Thu, 28 Aug 2008 16:42:04 GMT
NNTP-Posting-Host: 24.66.94.143
X-Complaints-To: abuse@shaw.ca
X-Trace: pd7urf3no 1219941724 24.66.94.143 (Thu, 28 Aug 2008 10:42:04 MDT)
NNTP-Posting-Date: Thu, 28 Aug 2008 10:42:04 MDT
Xref: news.mathworks.com comp.soft-sys.matlab:487699



abe.cool@gmail.com wrote:
> Well, we have tried another algorithm.and we did it.thank you for your
> interest.But it is getting 3 seconds to vectorize an image.I just want
> to know how efficient your algorithm is and please let me know the
> time it's taking for converting a raster image to the vector image.

Sorry, I did not do any timing tests. My machine spent far more time
-displaying- the vectorized image than computing the vectorized image.

I have looked around my files a bit, and it appears I might have been
mistaken about having implemented the code in Matlab; at the time
I wrote the posting, I thought that I had done a Matlab port. The port
I have for sure is in Maple, and uses enough Maple features that Maple 11
is not happy to convert the code to Matlab code automatically
(in particular, it has a hard time converting the Matrix constructor
that I compute the array limits for.) It would not be very difficult
to port the code to Matlab (everything it uses in Maple has Matlab
analogs), but it appears I did not have a reason to do so. I do have
Maple 12 available on a different machine and the conversion of Maple
to Matlab is said to be noticeably better in Maple 12, but I haven't had
a chance to give it a trial whirl (and for whatever reason the network
between the two machines was very slow yesterday.)

> And
> please tell me does Matlab support something like threads in othe
> languages(eg: Java,C#).

With the Distributed Computing Toolbox or Distributed Computing Engine
it does. I have not investigated the extent to which one can get
meaningful access to Java threads from Matlab. Based upon what I have
read before in this newsgroup about Java threads, there are significant
restrictions on rendering (must all be done by one specific Java thread)
and on synchronizing data structures between java threads and Matlab.

-- 
Q = quotation(rand);
if isempty(Q); error('Quotation server filesystem problems')
else sprintf('%s',Q), end