Interface Ranges
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface interface RangesFindrangesfor one dimension.Split the requested interval into ranges covering (possibly partial) cells of the input image. The requested interval is given by start coordinate
bx(in the extended source image) and size of the block to copybw, in a particular dimension. The full size of the (non-extended) image in this dimension is given byiw, the size of a (non-truncated) cell in this dimension is given bycw.Out-of-bounds values are handled depending on
Extensionstrategy. UseforExtension(Extension)to pick a particular strategy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRanges.Directionstatic classRanges.RangeInstructions for copying along a particular dimension.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Ranges.Range>findRanges(long bx, int bw, long iw, int cw)Find ranges for one dimension.static RangesforExtension(Extension extension)CONSTANT: Out-of-bounds values are set to a constant.
-
-
-
Method Detail
-
findRanges
java.util.List<Ranges.Range> findRanges(long bx, int bw, long iw, int cw)
Find ranges for one dimension.Split the requested interval into ranges covering (possibly partial) cells of the input image. The requested interval is given by start coordinate
bx(in the extended source image) and size of the block to copybw, in a particular dimension. The full size of the (non-extended) image in this dimension is given byiw, the size of a (non-truncated) cell in this dimension is given bycw.Out-of-bounds values are handled depending on
Extensionstrategy. UseforExtension(Extension)to pick a particular strategy.- Parameters:
bx- start of block in source coordinates (in pixels)bw- width of block to copy (in pixels)iw- source image width (in pixels)cw- source cell width (in pixels)
-
-