|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OffsetMapper
Defines a mapping of pixel offsets in one array to their offsets in another array.
This interface is intended to describe the relationship between
the positions of pixels in two arrays. For each offset into array 1
of interest, the mapOffset(long)
method returns the offset of the
corresponding pixel position in array 2.
PixelMapArrayImpl
Method Summary | |
---|---|
long |
mapOffset(long off1)
Returns an offset into array 2 corresponding to a given offset in array 1. |
long[] |
mapRange(long[] range1)
Returns a two-element array (min,max) indicating the range of mapping output values (array 2 offsets) which correspond to a given range of input values (array 1 offsets). |
Method Detail |
---|
long mapOffset(long off1)
off1
- the offset into the array 1 giving a pixel position
long[] mapRange(long[] range1)
mapOffset(long)
will not return any value outside of the range returned,
as long as no value outside of the supplied range parameter
is not supplied to it. The returned range is only used
for efficiency purposes and may be conservative (a larger range
than will actually be returned). A null value may be returned;
this, like a return value of {-Long.MIN_VALUE,Long.MAX_VALUE}
constitutes no guarantee about the mapping output values.
range1
- a two-element array giving the lowest value and highest
value (inclusive) which will be supplied to the
mapOffset method (range to be considered
in array 1)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |