public class ContrastStretchingContext extends CodomainMapContext
pStart
and pEnd
define 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).intervalEnd, intervalStart
Constructor and Description |
---|
ContrastStretchingContext() |
Modifier and Type | Method and Description |
---|---|
CodomainMapContext |
copy()
Implemented as specified by superclass.
|
double |
getA0()
Returns the slope of the first line.
|
double |
getA1()
Returns the slope of the second line.
|
double |
getA2()
Returns the slope of the third line.
|
double |
getB0()
Returns the y-intercept of the first line.
|
double |
getB1()
Returns the y-intercept of the second line.
|
double |
getB2()
Returns the y-intercept of the third line.
|
int |
getXEnd()
Returns the x-coordinate of the
pEnd point. |
int |
getXStart()
Returns the x-coordinate of the
pStart point. |
int |
getYEnd()
Returns the y-coordinate of the
pEnd point. |
int |
getYStart()
Returns the y-coordinate of the
pStart point. |
void |
setCoordinates(int xStart,
int yStart,
int xEnd,
int yEnd)
Sets the coordinates of the points used to determine the equations of the
lines.
|
void |
setXEnd(int v)
Sets the x-coodinate of the
pEnd point. |
void |
setXStart(int v)
Sets the x-coodinate of the
pStart point. |
void |
setYEnd(int v)
Sets the y-coodinate of the
pEnd point. |
void |
setYStart(int v)
Sets the y-coodinate of the
pStart point. |
equals, setCodomain
public CodomainMapContext copy()
copy
in class CodomainMapContext
CodomainMapContext.copy()
public void setCoordinates(int xStart, int yStart, int xEnd, int yEnd)
xStart
- The x-coodinate of the pStart
point.yStart
- The y-coodinate of the pStart
point.xEnd
- The x-coodinate of the pEnd
point.yEnd
- The y-coodinate of the pEnd
point.public void setXStart(int v)
pStart
point.v
- The value to set.public void setXEnd(int v)
pEnd
point.v
- The value to set.public void setYStart(int v)
pStart
point.v
- The value to set.public void setYEnd(int v)
pEnd
point.v
- The value to set.public int getXEnd()
pEnd
point.public int getXStart()
pStart
point.public int getYEnd()
pEnd
point.public int getYStart()
pStart
point.public double getA0()
public double getA1()
public double getA2()
public double getB0()
public double getB1()
public double getB2()
Version: 5.1.3-ice35-b52
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.