Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 4.7
-
Component/s: Graph Processing Framework
-
Labels:None
Description
For developers wanting to implement custom image filters or convolutions, it is currently not obvious how to best achieve this using the GPF Operator API.
Client GPF Operator code, that compute target pixels from a region around a corresponding source pixel, always have to deal with the nasty image border problem.
A simple improvement could be to add the following method to the Operator interface:
/**
* Reads a source tile whose region can overlap the bounds of source image.
* This method is particulary useful if you need to compute target pixels from an n x m region around a corresponding source pixel.
* In this case an extended tile will need to be read from the source.
*
* @param b the band providing the source image from which the tile is read
* @param r the requested tile region. This region might overlap the bounds of source image
* @param be a strategy used to fill the raster regions that lie outside the bounds of the source image
* @return a tile whose region can overlap the bounds of source image
*/
Tile getSourceTile(RasterDataNode b, Rectangle r, BorderExtender be);
Client GPF Operator code, that compute target pixels from a region around a corresponding source pixel, always have to deal with the nasty image border problem.
A simple improvement could be to add the following method to the Operator interface:
/**
* Reads a source tile whose region can overlap the bounds of source image.
* This method is particulary useful if you need to compute target pixels from an n x m region around a corresponding source pixel.
* In this case an extended tile will need to be read from the source.
*
* @param b the band providing the source image from which the tile is read
* @param r the requested tile region. This region might overlap the bounds of source image
* @param be a strategy used to fill the raster regions that lie outside the bounds of the source image
* @return a tile whose region can overlap the bounds of source image
*/
Tile getSourceTile(RasterDataNode b, Rectangle r, BorderExtender be);
Activity
Norman Fomferra
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Marco Zühlke [ marcoz ] | Norman Fomferra [ norman ] |
Norman Fomferra
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
Norman Fomferra
made changes -
| Fix Version/s | 4.7.1 [ 10353 ] |
Marco Peters
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |