public class DicomRawPixelInterpolator extends DicomPixelInterpolator
myProps
Constructor and Description |
---|
DicomRawPixelInterpolator()
Create a default interpolator.
|
Modifier and Type | Method and Description |
---|---|
int |
interpGrayscale(double in,
int ymin,
int ymax)
Interpolates a new grayscale value
|
void |
interpGrayscaleToRGB(double gray,
int ymin,
int ymax,
int[] out)
Interpolates a grayscale value to RGB
|
void |
interpRGB(double[] in,
int ymin,
int ymax,
int[] out)
Interpolates a new rgb value
|
int |
interpRGBToGrayscale(double[] rgb,
int ymin,
int ymax)
Interpolates an RGB value to grayscale
|
clone, getAllPropertyInfo, getProperty, getPropertyHost, getPropertyInfo, getSubClasses, hasProperty, isWritable, scan, setPropertyHost, setPropertyInfo, write
public DicomRawPixelInterpolator()
public int interpGrayscale(double in, int ymin, int ymax)
DicomPixelInterpolator
interpGrayscale
in class DicomPixelInterpolator
in
- input grayscaleymin
- minimum outputymax
- maximum outputpublic void interpRGB(double[] in, int ymin, int ymax, int[] out)
DicomPixelInterpolator
interpRGB
in class DicomPixelInterpolator
in
- input rgbymin
- minimum output valueymax
- maximum output valueout
- output rgbpublic void interpGrayscaleToRGB(double gray, int ymin, int ymax, int[] out)
DicomPixelInterpolator
interpGrayscaleToRGB
in class DicomPixelInterpolator
gray
- input grayscaleymin
- minimum output valueymax
- maximum output valueout
- output rgbpublic int interpRGBToGrayscale(double[] rgb, int ymin, int ymax)
DicomPixelInterpolator
interpRGBToGrayscale
in class DicomPixelInterpolator
rgb
- input rgbymin
- minimum output valueymax
- maximum output value