John Bintz | 1 Mar 2007 02:55

Re: NEW: flood fill

bulia byak wrote:
> Also, in that image, with tolerance=67, if I click once on the green
> segment, undo, then click there again (sometimes it takes more than
> one try), Inkscape freezes eating all memory.
>
> ...i.e. it looks like it runs amok allocating an insane number of points.
I just optimized the fill routine to only scan adjacent pixel runs 
once.  It now allocates a lot less items in the point queue, and runs a 
bit faster as well.  Let me know if you are still having problems.

John

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
bulia byak | 1 Mar 2007 03:21
Picon

Re: NEW: flood fill

On 2/28/07, John Bintz <jcoswell@...> wrote:
> > ...i.e. it looks like it runs amok allocating an insane number of points.
> I just optimized the fill routine to only scan adjacent pixel runs
> once.  It now allocates a lot less items in the point queue, and runs a
> bit faster as well.  Let me know if you are still having problems.

Yes I am :(

- open Winwistas.svg (I sent you link yesterday)

- press u

- tolerance = 67

- click in the topmost point of the logo but inside the frame (a
couple pixels lower than the frame)

- freezes, sucking all memory :(

--

-- 
bulia byak
Inkscape. Draw Freely.
http://www.inkscape.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
(Continue reading)

John Bintz | 1 Mar 2007 05:01

Re: NEW: flood fill

bulia byak wrote:
> On 2/28/07, John Bintz <jcoswell@...> wrote:
>> > ...i.e. it looks like it runs amok allocating an insane number of 
>> points.
>> I just optimized the fill routine to only scan adjacent pixel runs
>> once.  It now allocates a lot less items in the point queue, and runs a
>> bit faster as well.  Let me know if you are still having problems.
>
> Yes I am :( 
OK, I added another bitmap check.  The already-rendered bitmap is also 
checked to see if the pixel is added.  I wasn't 100% sure I would need 
the check, but it looks like I did.  With the new code, those 
instructions you sent me no longer locks up Inkscape, and the fill 
proceeds as expected on my machine.

John

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
bulia byak | 1 Mar 2007 05:45
Picon

Re: NEW: flood fill

On 3/1/07, John Bintz <jcoswell@...> wrote:
> OK, I added another bitmap check.  The already-rendered bitmap is also
> checked to see if the pixel is added.  I wasn't 100% sure I would need
> the check, but it looks like I did.  With the new code, those
> instructions you sent me no longer locks up Inkscape, and the fill
> proceeds as expected on my machine.

Yes, now it's fixed, thanks a lot!

One more thing I'd like to see in this tool: tracing in HSL channels.
That is, have a "Fill by:" label and H, S, L checkboxes in the
controls bar. By default all of them are on and this gives the same
result as now. But I can leave only H on and trace a blue area on a
red background, even if they are very close in S and L. Or have only S
checked and trace a bunch of bright flowers on a dull (low saturation)
background. Or have only L and trace the area of similar level of
lightness ignoring differences in hue or saturation. I think that
would be quite useful in many cases.

--

-- 
bulia byak
Inkscape. Draw Freely.
http://www.inkscape.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
(Continue reading)

Ted Gould | 1 Mar 2007 07:02
Favicon
Gravatar

Re: scripting interface

On Wed, 2007-02-28 at 09:14 +0100, warnhold@... wrote:
> 2nd question: If anything is detected to be wrong when the script is
> running, is there a way to inform the user about it?

Yes, if you output text to STDERR it will be shown to the user in a
dialog box.

		--Ted

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@...
https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Ted Gould | 1 Mar 2007 07:04
Favicon
Gravatar

Re: bug tracker [was Re: [Inkscape-user] Inkscape Project Status]

On Wed, 2007-02-28 at 02:07 +0000, Alan Horkan wrote:
> On Tue, 27 Feb 2007, Bryce Harrington wrote:
> 
> > Bug tracking:  I have been experimenting with use of Mantis with the
> >   goal of replacing our SF bug tracker.  It looks good, but the
> >   principle issue is how to migrate the bugs and their history from SF
> >   to Mantis.  I'm also interested in seeing if it can be combined well
> >   with Drupal, maybe along with Pootle.  Any drupalheads out there?
> 
> Has bugzilla been considered?

While I would say that the default configuration of bugzilla us
unusable, I really like the GNOME bug tracker.

Also, I think we shouldn't switch to something that can't use bug buddy
someday.  I think that utility would get us more stack traces (as it
pretty much does it for the user) with our bugs.

		--Ted

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Inkscape-devel mailing list
(Continue reading)

Ted Gould | 1 Mar 2007 07:06
Favicon
Gravatar

Re: GSoC 2007 is ON!!

On Sat, 2007-02-24 at 10:37 +0200, Niko Kiirala wrote:
> I'm here looking at the Finnish equivalent for GSoC called Kesäkoodi
> organized by the Finnish Centre for Open Source Solutions (COSS)
> 
> I might me applying for Inkscape related project there. As I know the
> filters already, it propably would be most efficient to apply for
> filters-related project.
> 
> So, I'd like to hear some ideas, what should that project include. I am
> now working on feBlend filter primitive support, so don't propose
> that ;)
> 
> For more info on Kesäkoodi or COSS, see
> http://www.coss.fi/web/coss/developers/summercode/faq

That looks neat.  Is there anything we need to do to make Inkscape a
valid project for you to work on?

		--Ted

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Inkscape-devel mailing list
(Continue reading)

Ted Gould | 1 Mar 2007 08:30
Favicon
Gravatar

NEW: Command line options

Hey,

So I added in some new command line options that are fun.

* --verb-list will list all the Verb IDs and their names in Inkscape.
This makes writing your own menus and hotkeys much easier as you can
easily find out what the choices are.

* --verb followed by a verb ID allows you to specify a verb to be called
on every document opened by Inkscape initially from the command line.

* --select followed by a node ID will allow you to add a node to the
list of selected objects.

Now, initially I thought these would be really good for performance
testing, and that was my driver.  You could do something like this:

$ time inkscape --verb=FileClose my_complex_file.svg

And get a reasonable number.

But, now, with the selection, I think it can be much more useful than
that.  You can call effects, or any other verb, then FileSave and
FileClose to automate all kinds of things on your diagrams.

	Have fun,
		Ted

(Continue reading)

Jon Phillips | 1 Mar 2007 08:33
Favicon
Gravatar

Re: NEW: Command line options

On Wed, 2007-02-28 at 23:30 -0800, Ted Gould wrote:
> Hey,
> 
> So I added in some new command line options that are fun.
> 
> * --verb-list will list all the Verb IDs and their names in Inkscape.
> This makes writing your own menus and hotkeys much easier as you can
> easily find out what the choices are.
> 
> * --verb followed by a verb ID allows you to specify a verb to be called
> on every document opened by Inkscape initially from the command line.
> 
> * --select followed by a node ID will allow you to add a node to the
> list of selected objects.
> 
> Now, initially I thought these would be really good for performance
> testing, and that was my driver.  You could do something like this:
> 
> $ time inkscape --verb=FileClose my_complex_file.svg
> 
> And get a reasonable number.
> 
> But, now, with the selection, I think it can be much more useful than
> that.  You can call effects, or any other verb, then FileSave and
> FileClose to automate all kinds of things on your diagrams.
> 
> 	Have fun,
> 		Ted

How can you chain them together on the commandline? That would be great
(Continue reading)

Niko Kiirala | 1 Mar 2007 10:06
Gravatar

Re: GSoC 2007 is ON!!

Wed, 28 Feb 2007 22:06:22 -0800
Ted Gould <ted@...> kirjoitti:

> > For more info on Kesäkoodi or COSS, see
> > http://www.coss.fi/web/coss/developers/summercode/faq
> 
> That looks neat.  Is there anything we need to do to make Inkscape a
> valid project for you to work on?

Well, all I know about the arrangements is what I've read from that
URL. (which was the English version as I pasted it, but now I get only
the Finnish version O.o )

That is, for now there is nothing necessary for you to do, but if I
could name some contact person from Inkscape project, it would be good.
I think this is about the same, as mentor in GSoC, though here it's not
required to have one.

--

-- 
Niko Kiirala
niko@...
http://niko.kiirala.com/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Gmane