mohamadDev / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Applying filter to image part #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It is required to develop facility, which allows applying image processing 
filter to part of source image only.

Original issue reported on code.google.com by andrew.k...@gmail.com on 26 Dec 2006 at 10:54

GoogleCodeExporter commented 9 years ago
Is this issue still open?

Would this be rectangular regions of an image (i.e. child regions), regions 
using a
binary masks or regions constructed some other way?

Original comment by mattd...@gmail.com on 29 Jun 2007 at 2:59

GoogleCodeExporter commented 9 years ago
Yes, it is still an issue. Potentially the library allows to do this using 
Masked 
filter. But in some cases it is required to apply filter directly to specified 
rectangular region without any extra processing with masks. 

Original comment by andrew.k...@gmail.com on 30 Jun 2007 at 4:43

GoogleCodeExporter commented 9 years ago
I've been looking through the code and I'm happy to implement the added feature 
so 
that you can apply filters directly to rectangular/child regions. Are you happy 
for 
me to go ahead and do this.

I was wondering what you though would be the best approach, what about it I 
made 
another overloaded verrsion of hte Applyfilter() funciton that takes 2 points 
as 
extra parameters, the top-left and bottom-right of the region.

Then in each filter function would use the points in it's main loop so rathern 
than

for (x = 0; x < width; x++)
    for (y = 0; y < height; y++)

if would be changed to

for (x = xStartPosn; x< xEndPosn; x++)
  for (y = xStartPosn, y< yEndPosn; y++)

I know some filters might need to work with some pixels just outside the ROI, 
to 
make sense, or maybe this could be an option.

Would this be a sensible solution or is there a better way of implementing it?

Original comment by mattd...@gmail.com on 10 Jul 2007 at 11:35

GoogleCodeExporter commented 9 years ago
I've been thinking about similar solution. It is rather close in TODO list, 
just did 
not have time yet for it. But I would create additional interface, which should 
be 
implemented by base classes first of all and then by image processing filters. 
Potentially base classes could do some work as well (or at least do 
initialization). 
Also, don't forget that we have as "in place" filters, as filter, which produce 
new 
image ...

If you would like, you can try to this. Then I could review and merge it with 
trunk.

Original comment by andrew.k...@gmail.com on 10 Jul 2007 at 10:25

GoogleCodeExporter commented 9 years ago
The work on this issue was start and some commits were done to source control. 
New 
IInPlacePartialFilter interface is provided and new base class for color 
filters is 
provided at this moment. Sample filters, which demonstrate the idea, are Sepia 
and 
RotateChannels.

Original comment by andrew.k...@gmail.com on 21 Aug 2007 at 4:30

GoogleCodeExporter commented 9 years ago
The issue is fixed by presenting new IInPlacePartialFilter interface. New base 
classes are added. Filters, which support partial filtering, were updated to 
support 
new interface.

The list of updated filters can be found in release notes of 1.5.0 version.

Original comment by andrew.k...@gmail.com on 16 Sep 2007 at 5:16

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 18 Feb 2008 at 12:34

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 19 May 2008 at 6:07