RSS/Atom feed Twitter
Site is read-only, email is disabled

still the same bug

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

15 of 15 messages available
Toggle history

Please log in to manage your subscriptions.

still the same bug Luis A. Florit 30 Apr 01:51
  still the same bug gg@catking.net 30 Apr 09:47
   using OpenCV in Gimp? Frank Tao 30 Apr 14:27
   still the same bug Bill Skaggs 30 Apr 19:59
  still the same bug Geert Jordaens 30 Apr 18:55
  still the same bug Geert Jordaens 01 May 11:02
still the same bug William Skaggs 30 Apr 03:20
still the same bug Luis A. Florit 01 May 02:37
  still the same bug GSR - FR 01 May 03:53
   still the same bug Geert Jordaens 01 May 10:35
    still the same bug Sven Neumann 02 May 08:12
still the same bug William Skaggs 01 May 18:08
  still the same bug gg@catking.net 01 May 20:06
still the same bug William Skaggs 01 May 21:00
still the same bug Luis A. Florit 01 May 23:53
Luis A. Florit
2007-04-30 01:51:17 UTC (over 17 years ago)

still the same bug

Pals,

I reported this bug in this list some time ago, and got no answer (I think), and the 2.3.16 version still has the same bug: The despeckle plugin shifts the image one pixel to the right, and one to the bottom. Consequently, it is essentially useless. If you draw in the middle of a white background a black cross like this:

x
xxx
x

and run the despeckle plugin with radius 1, you get this asymmetric output:

x
xxx
xx

Thanks,

Luis.

William Skaggs
2007-04-30 03:20:25 UTC (over 17 years ago)

still the same bug

From: "Luis A. Florit"

I reported this bug in this list some time ago . . .

For philosophical questions, it is good to bring them up first on this list. But for actual bugs, in the sense of the program doing something that is clearly incorrect, it is best to file a Bugzilla report. The advantage, and disadvantage, of Bugzilla is that nothing reported there is ever forgotten -- and few reports are completely ignored.

-- Bill


______________ ______________ ______________ ______________ Sent via the CNPRC Email system at primate.ucdavis.edu

gg@catking.net
2007-04-30 09:47:12 UTC (over 17 years ago)

still the same bug

On Mon, 30 Apr 2007 01:51:17 +0200, Luis A. Florit wrote:

Pals,

I reported this bug in this list some time ago, and got no answer (I think), and the 2.3.16 version still has the same bug: The despeckle plugin shifts the image one pixel to the right, and one to the bottom. Consequently, it is essentially useless. If you draw in the middle of a white background a black cross like this:

x
xxx
x

and run the despeckle plugin with radius 1, you get this asymmetric output:

x
xxx
xx

Thanks,

Luis.

I suspect it got ignored since one pixel offset errors are pretty much to be expected. I dont recall you mentioning the distortion last time.

could you provide more instructions to reproduce the error , I just made a cross ran despeckle and see not difference at all.

gg

Frank Tao
2007-04-30 14:27:38 UTC (over 17 years ago)

using OpenCV in Gimp?

Thank David Hodson and Sven, I have finished the code of adaptering OpenCV code to Gimp plugin. I wrote a simple HOWTO, hope it is useful to anyone interested in it. http://www.blogjava.net/solotim/archive/2007/04/30/114853.html

Geert Jordaens
2007-04-30 18:55:44 UTC (over 17 years ago)

still the same bug

Luis A. Florit wrote:

Pals,

I reported this bug in this list some time ago, and got no answer (I think), and the 2.3.16 version still has the same bug: The despeckle plugin shifts the image one pixel to the right, and one to the bottom. Consequently, it is essentially useless. If you draw in the middle of a white background a black cross like this:

x
xxx
x

and run the despeckle plugin with radius 1, you get this asymmetric output:

x
xxx
xx

Thanks,

Luis.

Bill Skaggs
2007-04-30 19:59:11 UTC (over 17 years ago)

still the same bug

gg@catking.net wrote:

I suspect it got ignored since one pixel offset errors are pretty much to be expected.

One pixel offset errors are *not* to be expected. If they occur, they are important bugs.

-- Bill

Luis A. Florit
2007-05-01 02:37:21 UTC (over 17 years ago)

still the same bug

For Bill:

I reported this bug in this list some time ago . . .

For philosophical questions, it is good to bring them up first on this list. But for actual bugs, in the sense of the program doing something that is clearly incorrect, it is best to file a Bugzilla report. The advantage, and disadvantage, of Bugzilla is that nothing reported there is ever forgotten -- and few reports are completely ignored.

Well, I am really tired about reporting bugs at Bugzilla and not even getting an answer, specially for Fedora bugs. So tired that I don't even fill bugs anymore, and in fact planning to abandon Fedora. bugzilla.redhat.com = DEAD. But, for what you said, I assume the GIMP Bugzilla is good. However, about a year or two ago, I reported a bug in Bugzilla: the mouse buttons in GIMP main image window do nothing when I have attached a my Wacom tablet. ONLY in GIMP. This happened with Fedora 4,5,6 (fresh installs), with GIMP stable and devel versions. It is the only program that I have this problem, and the bug is still alive.

For gg:

I suspect it got ignored since one pixel offset errors are pretty much to be expected.

???!!!
Well, now this answer was indeed unexpected! For me this kind of bugs is enough reason to never use a program!!! You cannot apply a filter with masks if it has shifts!

I dont recall you mentioning the distortion last time.

I think I did.

could you provide more instructions to reproduce the error,

Well, cannot tell you more...
Adaptative, nonrecursive, 1 pixel radius, black=7, white=248. A 5 pixel cross in the middle of a white image, and I got a NONSYMMETRIC 6 pixel output like this:

x xxx
xx

If you run it again, and again, you get a cellular automata.

Another: Draw a small diagonal (bottom left to top right) segment, and despeckle 1 pixel in radius. Repeat Despeckle many times. You will get a diagonal moving cellular automata.

Of course, I didn't discover this drawing crosses. I saw the obvious shift during despeckle in a real image. I removed my .gimpXXX files, and the bug persists.

I just made a cross ran despeckle and see not difference at all.

Did you use 1 pixel radius?
In fact, the bug is present for any radius, but is hard to see it for big ones.

For Geert:

Is this really a bug, a radius 1 will give you a window of 3x3 pixels.

No, I get a nonsymmetric output of 6 pixels. Only for the devel versions.

The despeckle filter is a median filter, with a cross five of the nine surrounding pixels will yield a medium equal to one of the cross pixels.

You cannot get asymmetric output from a symmetric input...

Thanks,

L.

GSR - FR
2007-05-01 03:53:41 UTC (over 17 years ago)

still the same bug

Hi,
gimpdevel@luisflorit.endjunk.com (2007-04-30 at 2137.21 -0300):

could you provide more instructions to reproduce the error,

Well, cannot tell you more...
Adaptative, nonrecursive, 1 pixel radius, black=7, white=248. A 5 pixel cross in the middle of a white image, and I got a NONSYMMETRIC 6 pixel output like this:

x xxx
xx

I see what you describe, with the 5 pixels being grey #88888 and the bg #ffffff. A longer cross (3 pixels each arm plus the center pixel) also returns something interesting:

x x x xx
x xx
xxxxxxx -> xxxxxxx
x xxxxxx
x xx
x xx

Repeating the filter makes it grow to the bottom right a bit each time.

GSR

Geert Jordaens
2007-05-01 10:35:04 UTC (over 17 years ago)

still the same bug

GSR - FR wrote:

Hi,
gimpdevel@luisflorit.endjunk.com (2007-04-30 at 2137.21 -0300):

could you provide more instructions to reproduce the error,

Well, cannot tell you more...
Adaptative, nonrecursive, 1 pixel radius, black=7, white=248. A 5 pixel cross in the middle of a white image, and I got a NONSYMMETRIC 6 pixel output like this:

x xxx
xx

I see what you describe, with the 5 pixels being grey #88888 and the bg #ffffff. A longer cross (3 pixels each arm plus the center pixel) also returns something interesting:

x x x xx
x xx
xxxxxxx -> xxxxxxx
x xxxxxx
x xx
x xx

Repeating the filter makes it grow to the bottom right a bit each time.

GSR

Geert Jordaens
2007-05-01 11:02:51 UTC (over 17 years ago)

still the same bug

I once wrote a path for it, this included the possibility of disabling the histogram correction (by setting the values out of range). It seems that a more recent patch reversed this option. Probably the out of range option was not the best way of implementing it, however the function does make sense for line-art and B&W photo's see bug #72862.

Revision *16861* - (view
)
(annotate
)
- [select for diffs]

2005-03-11 Sven Neumann >

* plug-ins/common/despeckle.c: test intensity against white and black level, not only the red channel. Improved border behavior. Iterate over the pixels row-by-row, instead of jumping through the data column-wise.

...

Revision *15374* - 2004-10-30 Sven Neumann >

* plug-ins/common/despeckle.c: applied a patch from Geert Jordaens that improves the Despeckle algorithm. See bug #72862 .

Right now I don't have the tme to followup a bug report or create a complete patch.

for (v = ymin; v < ymax; v++) {
gint off2 = v * width * bpp;

for (u = xmin, off2 += xmin * bpp; u < xmax; u++, off2 += bpp) {
guchar value = pixel_luminance (src + off2, bpp);

/* if (value < black_level) Allow no histogram correction on line art or b&w*/ if (value < black_level && filter_type & FILTER_ADAPTIVE) {
hist0++;
}

/* else if (value > white_level) Allow no histogram correction on line art or b&w*/ else if (value > white_level && filter_type & FILTER_ADAPTIVE) {
hist255++;
}
else
{
buf[count] = src + off2; ibuf[count] = value; count++;
}
}
}

Geert Jordaens

Luis A. Florit wrote:

Pals,

I reported this bug in this list some time ago, and got no answer (I think), and the 2.3.16 version still has the same bug: The despeckle plugin shifts the image one pixel to the right, and one to the bottom. Consequently, it is essentially useless. If you draw in the middle of a white background a black cross like this:

x
xxx
x

and run the despeckle plugin with radius 1, you get this asymmetric output:

x
xxx
xx

Thanks,

Luis.

William Skaggs
2007-05-01 18:08:35 UTC (over 17 years ago)

still the same bug

From: "Luis A. Florit"

For Bill:
[...]

Well, I am really tired about reporting bugs at Bugzilla and not even getting an answer, specially for Fedora bugs. [...]

Fedora maintainance sucks. Please don't judge GIMP's bug handling by Fedora.

For gg:

I suspect it got ignored since one pixel offset errors are pretty much to be expected.

???!!!
Well, now this answer was indeed unexpected! For me this kind of bugs is enough reason to never use a program!!! You cannot apply a filter with masks if it has shifts!

As I wrote before, you are quite correct, and gg is wrong here. Rounding errors are to be expected every so often, although they should be fixed when they are found if possible, but a systematic 1-pixel offset in a filter is a serious bug that must be fixed.

-- Bill


______________ ______________ ______________ ______________ Sent via the CNPRC Email system at primate.ucdavis.edu

gg@catking.net
2007-05-01 20:06:38 UTC (over 17 years ago)

still the same bug

On Tue, 01 May 2007 18:08:35 +0200, William Skaggs wrote:

From: "Luis A. Florit"

For Bill:
[...]

Well, I am really tired about reporting bugs at Bugzilla and not even getting an answer, specially for Fedora bugs. [...]

Fedora maintainance sucks. Please don't judge GIMP's bug handling by Fedora.

For gg:

I suspect it got ignored since one pixel offset errors are pretty much to be expected.

???!!!
Well, now this answer was indeed unexpected! For me this kind of bugs is enough reason to never use a program!!! You cannot apply a filter with masks if it has shifts!

As I wrote before, you are quite correct, and gg is wrong here. Rounding errors are to be expected every so often, although they should be fixed when they are found if possible, but a systematic 1-pixel offset in a filter is a serious bug that must be fixed.

-- Bill

Since everyone seems to quoting what I wrote but only reading half of the sentence I probably should explain what I meant.

Please note the "I suspect it got ignored since". As Bill says here systematic offsets are a bug that should be fixed but random rounding errors are unavoidable in many cases. That means they should be random ie in both directions and not trucations errors always in one direction or a definite pixel offset.

There is an underlying issue where both origin and offset of a region are stored as gint before any processing is done. This means two rounding and/or trucation errors can easily end up producing a one or two pixel error.

I'm rather surprised that anyone following this list should mistake my position since I have been quite critical of just this kind of point, even in the last 7 days.

Now Luis has given a specific case and replied to my request for the filter settings needed to reproduce it, it seems to be getting the attention he felt it missed last time.

gg

William Skaggs
2007-05-01 21:00:10 UTC (over 17 years ago)

still the same bug

From: gg@catking.net

There is an underlying issue where both origin and offset of a region are stored as gint before any processing is done. This means two rounding and/or trucation errors can easily end up producing a one or two pixel error.

Yes, but there are other basic coding errors that can easily cause a filter to shift its result by one pixel, too.

I'm rather surprised that anyone following this list should mistake my position since I have been quite critical of just this kind of point, even in the last 7 days.

I actually understood what you *meant*, but what you *said* to Luis was misleading and needed to be corrected.

Now Luis has given a specific case and replied to my request for the filter settings needed to reproduce it, it seems to be getting the attention he felt it missed last time.

Well, it's getting attention, but it probably won't get fixed unless there is a bug report. By the time people get back from LGM, all this discussion will have disappeared in Dev-list limbo, and probably nobody is going to go back and re-read it. (Unless you fix it yourself, gg :-)).

-- Bill

gg

______________ ______________ ______________ ______________ Sent via the CNPRC Email system at primate.ucdavis.edu

Luis A. Florit
2007-05-01 23:53:50 UTC (over 17 years ago)

still the same bug

Glad you all confirmed the bug, and sorry gg if I misunderstood you.

However, I am not sure what "histogram correction" means here. I saw the same shift in the despeckle plugin for photographies, like a human face.

Thanks,

Luis.

Sven Neumann
2007-05-02 08:12:12 UTC (over 17 years ago)

still the same bug

Hi,

On Tue, 2007-05-01 at 10:35 +0200, Geert Jordaens wrote:

IMHO this comes from the histogram correction, try the same with a black (000000) cross and white (FFFFFF) background.

see :

2004-10-30 Sven Neumann

* plug-ins/common/despeckle.c: applied a patch from Geert Jordaens that improves the Despeckle algorithm. See bug #72862.

Do you suggest that we back out this change then? Note that I only committed it. Perhaps I even understood it at that point in time but now I am pretty much clueless on what those lines are supposed to be good for.

Sven