Package omeis.providers.re.codomain
Class ContrastStretchingContext
- java.lang.Object
-
- omeis.providers.re.codomain.CodomainMapContext
-
- omeis.providers.re.codomain.ContrastStretchingContext
-
public class ContrastStretchingContext extends CodomainMapContext
Two pointspStartandpEnddefine the context of this transformation. We determine the equations of 3 lines (segments to be correct). The first one is a line between the point with coordinates (intervalStart, intervalStart) and (xStart, yStart). The second one between (xStart, yStart) and (xEnd, yEnd). The third one between (xEnd, yEnd) and (intervalEnd, intervalEnd).- Since:
- OME2.2
-
-
Field Summary
-
Fields inherited from class omeis.providers.re.codomain.CodomainMapContext
intervalEnd, intervalStart
-
-
Constructor Summary
Constructors Constructor Description ContrastStretchingContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodomainMapContextcopy()Implemented as specified by superclass.doublegetA0()Returns the slope of the first line.doublegetA1()Returns the slope of the second line.doublegetA2()Returns the slope of the third line.doublegetB0()Returns the y-intercept of the first line.doublegetB1()Returns the y-intercept of the second line.doublegetB2()Returns the y-intercept of the third line.intgetXEnd()Returns the x-coordinate of thepEndpoint.intgetXStart()Returns the x-coordinate of thepStartpoint.intgetYEnd()Returns the y-coordinate of thepEndpoint.intgetYStart()Returns the y-coordinate of thepStartpoint.voidsetCoordinates(int xStart, int yStart, int xEnd, int yEnd)Sets the coordinates of the points used to determine the equations of the lines.voidsetXEnd(int v)Sets the x-coodinate of thepEndpoint.voidsetXStart(int v)Sets the x-coodinate of thepStartpoint.voidsetYEnd(int v)Sets the y-coodinate of thepEndpoint.voidsetYStart(int v)Sets the y-coodinate of thepStartpoint.-
Methods inherited from class omeis.providers.re.codomain.CodomainMapContext
equals, setCodomain
-
-
-
-
Method Detail
-
copy
public CodomainMapContext copy()
Implemented as specified by superclass.- Specified by:
copyin classCodomainMapContext- Returns:
- See above.
- See Also:
CodomainMapContext.copy()
-
setCoordinates
public void setCoordinates(int xStart, int yStart, int xEnd, int yEnd)Sets the coordinates of the points used to determine the equations of the lines.- Parameters:
xStart- The x-coodinate of thepStartpoint.yStart- The y-coodinate of thepStartpoint.xEnd- The x-coodinate of thepEndpoint.yEnd- The y-coodinate of thepEndpoint.
-
setXStart
public void setXStart(int v)
Sets the x-coodinate of thepStartpoint.- Parameters:
v- The value to set.
-
setXEnd
public void setXEnd(int v)
Sets the x-coodinate of thepEndpoint.- Parameters:
v- The value to set.
-
setYStart
public void setYStart(int v)
Sets the y-coodinate of thepStartpoint.- Parameters:
v- The value to set.
-
setYEnd
public void setYEnd(int v)
Sets the y-coodinate of thepEndpoint.- Parameters:
v- The value to set.
-
getXEnd
public int getXEnd()
Returns the x-coordinate of thepEndpoint.- Returns:
- See above.
-
getXStart
public int getXStart()
Returns the x-coordinate of thepStartpoint.- Returns:
- See above.
-
getYEnd
public int getYEnd()
Returns the y-coordinate of thepEndpoint.- Returns:
- See above.
-
getYStart
public int getYStart()
Returns the y-coordinate of thepStartpoint.- Returns:
- See above.
-
getA0
public double getA0()
Returns the slope of the first line.- Returns:
- See above.
-
getA1
public double getA1()
Returns the slope of the second line.- Returns:
- See above.
-
getA2
public double getA2()
Returns the slope of the third line.- Returns:
- See above.
-
getB0
public double getB0()
Returns the y-intercept of the first line.- Returns:
- See above.
-
getB1
public double getB1()
Returns the y-intercept of the second line.- Returns:
- See above.
-
getB2
public double getB2()
Returns the y-intercept of the third line.- Returns:
- See above.
-
-