public class Render extends Object
| Modifier and Type | Method and Description |
|---|---|
protected static int |
bestMipmapLevel(double scale) |
static BufferedImage |
createARGBImage(int[] pixels,
int width,
int height)
Create a
BufferedImage from an existing pixel array. |
protected static AffineModel2D |
createScaleLevelTransform(int scaleLevel)
Create an affine transformation that compensates for both scale and
pixel shift of a mipmap level that was generated by top-left pixel
averaging.
|
static void |
main(String... args) |
static void |
render(Patch patch,
int coefficientsWidth,
int coefficientsHeight,
ij.process.FloatProcessor targetImage,
ij.process.FloatProcessor targetWeight,
ij.process.ColorProcessor targetCoefficients,
double x,
double y,
double scale)
Renders a patch, mapping its intensities [min, max] → [0, 1]
|
protected static double |
sampleAverageScale(CoordinateTransform ct,
int width,
int height,
double dx)
Sample the average scaling of a given
CoordinateTransform by transferring
a set of point samples using the CoordinateTransform and then
least-squares fitting a SimilarityModel2D to it. |
public static final BufferedImage createARGBImage(int[] pixels, int width, int height)
BufferedImage from an existing pixel array. Make sure
that pixels.length == width * height.pixels - width - height - protected static final double sampleAverageScale(CoordinateTransform ct, int width, int height, double dx)
CoordinateTransform by transferring
a set of point samples using the CoordinateTransform and then
least-squares fitting a SimilarityModel2D to it.ct - width - of the samples setheight - of the samples setdx - spacing between samplesprotected static final int bestMipmapLevel(double scale)
protected static final AffineModel2D createScaleLevelTransform(int scaleLevel)
scaleLevel - public static final void render(Patch patch, int coefficientsWidth, int coefficientsHeight, ij.process.FloatProcessor targetImage, ij.process.FloatProcessor targetWeight, ij.process.ColorProcessor targetCoefficients, double x, double y, double scale)
patch - the patch to be renderedtargetImage - target pixels, specifies the target boxtargetWeight - target weight pixels, depending on alphax - target box offset in world coordinatesy - target box offset in world coordinatesscale - target scalepublic static final void main(String... args)
Copyright © 2015–2021 Fiji. All rights reserved.