< Previous | Contents | Next >
Domain of Definition
To use DoD in a fuse, you will need these methods
Name | Description |
GetInputDoD(inp): | Returns the specified input’s DoD. You mustn’t access pixel coordinates outside of this when working on the input image data. The canvas color value should be substituted instead, something that GetPixel() won’t do for you automatically. |
GetRoI(): | Returns the requested region of interest. You may return an image with a DoD that is larger or smaller, but if you want to gain as much speed as possible, don’t waste time calculating pixels outside of this. During precalc requests, this is nil. For regular process requests, this should end up as the ValidWindow attribute of your output image. |
Both functions return ImageDomain objects. They are similar to FuRectInt in that they store information about the area that contains valid pixel data. You can access these coordinates using
.left, .bottom, .right and .top as if it was a FuRectInt.