Hi,
the photoshop documentation says that you should process the whole image in tiles using the prefered tile size given in filterRecord.
Thats fine for separate pixel processing, e.g. color correction.
But what is when I need a lot of neigbor-pixel for my filtering?
Especially in the theoretical worst case where each out-pixel is the weighted sum of _all_ in-pixel?
is it only a matter of memory allocation or will I have problems processing (very) large images?
Thomas
Processing in Tiles necessary?
That's kind of the same thing isn't it. You should strive to get the %26lt;br /%26gt;smallest footprint for your processing as possible.%26lt;br /%26gt;%26lt;br /%26gt;%26lt;br /%26gt;%26lt;ThomasTh@adobeforums.com%26gt; wrote in message %26lt;br /%26gt;news:3bc443a5.-1@webcrossing.la2eafNXanI...%26lt;br /%26gt;%26gt; Hi,%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; the photoshop documentation says that you should process the whole image %26lt;br /%26gt;%26gt; in tiles using the prefered tile size given in filterRecord.%26lt;br /%26gt;%26gt; Thats fine for separate pixel processing, e.g. color correction.%26lt;br /%26gt;%26gt; But what is when I need a lot of neigbor-pixel for my filtering?%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; Especially in the theoretical worst case where each out-pixel is the %26lt;br /%26gt;%26gt; weighted sum of _all_ in-pixel?%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; is it only a matter of memory allocation or will I have problems %26lt;br /%26gt;%26gt; processing (very) large images?%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; ThomasProcessing in Tiles necessary?
The sample code that comes with the Filter SDK uses tiles in its examples, but it isn't necessary. Just set your inRect and outRect to the full filterRect size (or use imageSize.h and imageSize.v to find the image size). All of those are members of the filterRecord structure.
-John
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment