Copy link to clipboard
Copied
Is it possible to get access to pixels outside the image area using the ChannelPorts Suite? In a standard way (using filterRecord, setting input/output/maskPadding fields to plugInWantsEdgeReplication and requesting rects that exceeds image boundaries) there is no problem, but when I tried similar thing with ReadPixelsFromLevel function, it does not work. When I passed the rect with top and left set to, for example, -5, the function changed the bounds to 0. I need to read from various layers and I also have to access pad pixels. Is there any solution for this?
Copy link to clipboard
Copied
Setting canvas bounds to include all data you may need to access and then resetting it back should work.
Copy link to clipboard
Copied
Thanks, I had to modify my tiling algorithm and it works now. However, it seems that pad pixels aren't duplicated or I have some bug in my app. I have explicitly set input/output/maskPadding to plugInWantsEdgeReplication.
Maybe someone knows whether pad pixels are set to random or to duplicate canvas edge pixels when working with ChannelPorts Suite?