help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: image shows only half of edge pixels


From: David Grundberg
Subject: Re: image shows only half of edge pixels
Date: Fri, 05 Feb 2010 09:28:06 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090812)

address@hidden wrote:
Hello!


Trying to find a way to convert a bitmap into a vector image by simply drawing
a rectangle for each pixel I found octaves can do  that.  I  made  the  little
script  below.  But  my  problem is that the pixels on the edge are only shown
half in the svg-result. What can I do about that?

Thanks for any help or hints
Lynx
__________________________________________-

arg_list = argv ();
if nargin < 1
  printf("Usage: %s <bitmap.ppm>\n", program_name);
  exit(1)
endif

#I= loadimage(arg_list{1});
I= imread(arg_list{1});
figure(1, 'visible', 'off');
image(I);
axis ("equal");
shading flat;
print(sprintf("%s.svg", arg_list{1}), '-dsvg');

If you want to convert bitmaps to vector graphics and don't find it interesting to implement it yourself, you ought to try Inkscape. It's a free-as-in-freedom vector graphics editor that has a very good bitmap-to-vector tool. And it exports to svg.

hth
David


reply via email to

[Prev in Thread] Current Thread [Next in Thread]