public class SpotRoi extends Object
Modifier and Type | Field and Description |
---|---|
double[] |
x
Polygon points X coordinates, in physical units.
|
double[] |
y
Polygon points Y coordinates, in physical units.
|
Constructor and Description |
---|
SpotRoi(double[] x,
double[] y) |
Modifier and Type | Method and Description |
---|---|
double |
area() |
SpotRoi |
copy() |
static Spot |
createSpot(double[] x,
double[] y,
double quality) |
double |
radius() |
<T> IterableInterval<T> |
sample(double spotXCenter,
double spotYCenter,
RandomAccessibleInterval<T> img,
double xScale,
double yScale) |
<T> IterableInterval<T> |
sample(Spot spot,
ImgPlus<T> img) |
void |
scale(double alpha) |
double[] |
toPolygonX(double calibration,
double xcorner,
double spotXCenter,
double magnification)
Returns a new
int array containing the X pixel coordinates
to which to paint this polygon. |
double[] |
toPolygonY(double calibration,
double ycorner,
double spotYCenter,
double magnification)
Returns a new
int array containing the Y pixel coordinates
to which to paint this polygon. |
public final double[] x
public final double[] y
public SpotRoi copy()
public double[] toPolygonX(double calibration, double xcorner, double spotXCenter, double magnification)
int
array containing the X pixel coordinates
to which to paint this polygon.calibration
- the pixel size in X, to convert physical coordinates to pixel
coordinates.xcorner
- the top-left X corner of the view in the image to paint.magnification
- the magnification of the view.int
array.public double[] toPolygonY(double calibration, double ycorner, double spotYCenter, double magnification)
int
array containing the Y pixel coordinates
to which to paint this polygon.calibration
- the pixel size in Y, to convert physical coordinates to pixel
coordinates.ycorner
- the top-left Y corner of the view in the image to paint.magnification
- the magnification of the view.int
array.public <T> IterableInterval<T> sample(Spot spot, ImgPlus<T> img)
public <T> IterableInterval<T> sample(double spotXCenter, double spotYCenter, RandomAccessibleInterval<T> img, double xScale, double yScale)
public double radius()
public double area()
public void scale(double alpha)
public static Spot createSpot(double[] x, double[] y, double quality)
Copyright © 2015–2021 Fiji. All rights reserved.