Re: [Gegl-developer] various blurs

2011-01-31 Thread Martin Nordholts
On 01/26/2011 09:08 PM, andy gill wrote:
> I've redone the patches for the box-blur and pixelise filters to include
> tests.
> the patches now total 300k however, what's the preferred method of
> submitting them?

Put them in bugzilla please, that way it's easy to find them when one 
looks for them.

  / Martin


-- 

My GIMP Blog:
http://www.chromecode.com/
"Nightly GIMP, GEGL, babl tarball builds"
___
Gegl-developer mailing list
[email protected]
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer


Re: [Gegl-developer] various blurs

2011-01-26 Thread andy gill
I've redone the patches for the box-blur and pixelise filters to include
tests.
the patches now total 300k however, what's the preferred method of
submitting them?

On 19 January 2011 10:39, Øyvind Kolås  wrote:

> On Wed, Jan 19, 2011 at 10:29 AM, andy gill  wrote:
> > Could you explain how the tests work, it's not obvious to me what I need
> to
> > add. Do the tests make sure that the results match a reference image in
> some
> > way?
>
> XML files in gegl/tests/compositions are rendered and their output is
> tested against the PNG files by the same names in
> gegl/tests/compositions/reference, visual files indicating where the
> outputs differ are also produced if the tests are wrong.
>
> It would probably be good to have a section on the website explaining
> how these regression tests work. There are also bots the build the
> GEGL code base nightly and will complain to us on IRC if the build
> breaks or the tests fail passing.
>
> /Øyvind K.
> --
> «The future is already here. It's just not very evenly distributed»
>  -- William Gibson
> http://pippin.gimp.org/http://ffii.org/
>
___
Gegl-developer mailing list
[email protected]
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer


Re: [Gegl-developer] various blurs

2011-01-19 Thread Øyvind Kolås
On Wed, Jan 19, 2011 at 10:29 AM, andy gill  wrote:
> Could you explain how the tests work, it's not obvious to me what I need to
> add. Do the tests make sure that the results match a reference image in some
> way?

XML files in gegl/tests/compositions are rendered and their output is
tested against the PNG files by the same names in
gegl/tests/compositions/reference, visual files indicating where the
outputs differ are also produced if the tests are wrong.

It would probably be good to have a section on the website explaining
how these regression tests work. There are also bots the build the
GEGL code base nightly and will complain to us on IRC if the build
breaks or the tests fail passing.

/Øyvind K.
-- 
«The future is already here. It's just not very evenly distributed»
                                                 -- William Gibson
http://pippin.gimp.org/                            http://ffii.org/
___
Gegl-developer mailing list
[email protected]
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer


Re: [Gegl-developer] various blurs

2011-01-19 Thread Øyvind Kolås
On Wed, Jan 19, 2011 at 10:29 AM, andy gill  wrote:
> As for the alternative gaussian implementation, it was not my intention that
> we should keep both, only that interested parties may wish to compare them
> side by side before deciding which to keep and which to ditch. Quality wise,
> I don't think there's any difference between the two, and personally I think
> the new implementation has a number of benefits, not the least of which is
> that it works robustly for all blur sizes, and that the code is trivial.
> Whether an 'exact' gaussian is a requirement over a close approximation I
> didn't feel qualified to answer.
> I may be inventing a contention that isn't there, but I didn't want to just
> throw out the old implementation without discussion.

GEGL would prefer to be accurate rather than fast, and when trading
quality for speed - making it optional. It could make sense to allow
toggling a fast path in gegl:gaussian-blur. For now though it could
make sense to keep the alternate gaussian blur in the workshop where
it isn't compiled by default but still kept available.

/Øyvind K.
-- 
«The future is already here. It's just not very evenly distributed»
                                                 -- William Gibson
http://pippin.gimp.org/                            http://ffii.org/
___
Gegl-developer mailing list
[email protected]
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer


Re: [Gegl-developer] various blurs

2011-01-19 Thread andy gill
Could you explain how the tests work, it's not obvious to me what I need to
add. Do the tests make sure that the results match a reference image in some
way?

As for the alternative gaussian implementation, it was not my intention that
we should keep both, only that interested parties may wish to compare them
side by side before deciding which to keep and which to ditch. Quality wise,
I don't think there's any difference between the two, and personally I think
the new implementation has a number of benefits, not the least of which is
that it works robustly for all blur sizes, and that the code is trivial.
Whether an 'exact' gaussian is a requirement over a close approximation I
didn't feel qualified to answer.
I may be inventing a contention that isn't there, but I didn't want to just
throw out the old implementation without discussion.

Cheers,
Andy.

On 19 January 2011 06:43, Martin Nordholts  wrote:

> On 01/18/2011 11:43 PM, andy gill wrote:
> > I've attached 3 more patches, they are:
> >
> > box-blur. it's now a good deal faster, and also properly supports
> > fractional blur widths.
> >
> > fast gaussian blur. this is implemented as 3 box filters in series. it
> > approximates a gaussian fairly closely, visually I can't tell the
> > difference between this and the current gaussian blur, although the
> > units don't match exactly. I've put it in a separate file to allow easy
> > comparisons while we decide whether it's worth keeping.
> >
> > pixelise. a simple pixelise filter like the one in gimp currently.
>
> Thanks!
>
> You should add regression tests though. In GEGL it's very simple, see
> tests/compositions. We have a BuildBot that runs all tests every night.
>
> And IMO, we should not have two gaussian blur implementations, we should
> only have a single high-quality one, so I suggest you try to merge the two.
>
> Best regards,
> Martin
>
>
> --
>
> My GIMP Blog:
> http://www.chromecode.com/
> "Nightly GIMP, GEGL, babl tarball builds"
> ___
> Gegl-developer mailing list
> [email protected]
> https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer
>
___
Gegl-developer mailing list
[email protected]
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer


Re: [Gegl-developer] various blurs

2011-01-18 Thread Martin Nordholts
On 01/18/2011 11:43 PM, andy gill wrote:
> I've attached 3 more patches, they are:
>
> box-blur. it's now a good deal faster, and also properly supports
> fractional blur widths.
>
> fast gaussian blur. this is implemented as 3 box filters in series. it
> approximates a gaussian fairly closely, visually I can't tell the
> difference between this and the current gaussian blur, although the
> units don't match exactly. I've put it in a separate file to allow easy
> comparisons while we decide whether it's worth keeping.
>
> pixelise. a simple pixelise filter like the one in gimp currently.

Thanks!

You should add regression tests though. In GEGL it's very simple, see 
tests/compositions. We have a BuildBot that runs all tests every night.

And IMO, we should not have two gaussian blur implementations, we should 
only have a single high-quality one, so I suggest you try to merge the two.

Best regards,
Martin


-- 

My GIMP Blog:
http://www.chromecode.com/
"Nightly GIMP, GEGL, babl tarball builds"
___
Gegl-developer mailing list
[email protected]
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer