|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectomeis.providers.re.codomain.CodomainMapContext
omeis.providers.re.codomain.PlaneSlicingContext
public class PlaneSlicingContext
We consider that the image is composed of eight 1-bit
planes
ranging from bit-plane 0
for the least significant bit to
bit-plane 7
for the most significant bit. The BIT_* constants
cannot be modified b/c they have a meaning.
Field Summary | |
---|---|
static int |
BIT_EIGHT
Identifies the bit-plane 8 i.e. |
static int |
BIT_FIVE
Identifies the bit-plane 5 i.e. |
static int |
BIT_FOUR
Identifies the bit-plane 4 i.e. |
static int |
BIT_ONE
Identifies the bit-plane 1 i.e. |
static int |
BIT_SEVEN
Identifies the bit-plane 7 i.e. |
static int |
BIT_SIX
Identifies the bit-plane 6 i.e. |
static int |
BIT_THREE
Identifies the bit-plane 3 i.e. |
static int |
BIT_TWO
Identifies the bit-plane 2 i.e. |
static int |
BIT_ZERO
Identifies the bit-plane 0 i.e. |
Fields inherited from class omeis.providers.re.codomain.CodomainMapContext |
---|
intervalEnd, intervalStart |
Constructor Summary | |
---|---|
PlaneSlicingContext(int planePrevious,
int planeSelected,
boolean constant)
Creates a new instance. |
Method Summary | |
---|---|
CodomainMapContext |
copy()
Implemented as specified by superclass. |
int |
getLowerLimit()
Returns the constant level for bit-planes < planeSelected w.r.t the higher-order bits. |
int |
getPlanePrevious()
Returns the value corresponding to the index of the bit-plane ranged just before the one selected. |
int |
getPlaneSelected()
Returns the value corresponding to the index of the selected bit-plane. |
int |
getUpperLimit()
Returns the constant level for bit-planes > planeSelected w.r.t the higher-order bits. |
boolean |
IsConstant()
Returns the type of bit-planes mapping. |
void |
setConstant(boolean b)
Sets the type of mapping. |
void |
setLimits(int lowerLimit,
int upperLimit)
Set the limits. |
void |
setLowerLimit(int v)
Sets the value (in [intervalStart, intervalEnd]) used to set the level of the bit-plane < bit-plane selected. |
void |
setPlanes(int planePrevious,
int planeSelected)
Sets the value of the selected planes i.e. the previous plane and the selected one. |
void |
setUpperLimit(int v)
Sets the value (in [intervalStart, intervalEnd]) used to set the level of the bit-plane > bit-plane selected. |
Methods inherited from class omeis.providers.re.codomain.CodomainMapContext |
---|
equals, setCodomain |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BIT_ZERO
public static final int BIT_ONE
public static final int BIT_TWO
public static final int BIT_THREE
public static final int BIT_FOUR
public static final int BIT_FIVE
public static final int BIT_SIX
public static final int BIT_SEVEN
public static final int BIT_EIGHT
Constructor Detail |
---|
public PlaneSlicingContext(int planePrevious, int planeSelected, boolean constant)
planePrevious
- The value corresponding to the index of the bit-plane ranged
just before the one selected.planeSelected
- The value corresponding to the index of the selected
bit-plane.constant
- Passed false
if the bit-planes aren't mapped to
a specified level true
otherwise.Method Detail |
---|
public CodomainMapContext copy()
copy
in class CodomainMapContext
CodomainMapContext.copy()
public int getPlanePrevious()
public int getPlaneSelected()
public boolean IsConstant()
false
if
the bit-planes aren't mapped to a specified level true
otherwise.
public int getLowerLimit()
public int getUpperLimit()
public void setLimits(int lowerLimit, int upperLimit)
lowerLimit
- The value (in [intervalStart, intervalEnd]) used to set the
level of the bit-plane < bit-plane selected.upperLimit
- The value (in [intervalStart, intervalEnd]) used to set the
level of the bit-plane > bit-plane selected.public void setLowerLimit(int v)
v
- The value to set.public void setUpperLimit(int v)
v
- The value to set.public void setPlanes(int planePrevious, int planeSelected)
planePrevious
- The plane to set.planeSelected
- The plane to set.
IllegalArgumentException
- If the value of the previous is not greater than the value of
the selected one.public void setConstant(boolean b)
b
- The value to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta4.2.1-r8614-Beta4.2-b41
Copyright © 2009 The University of Dundee. All Rights Reserved.