- java.lang.Object
-
- ij.process.TypeConverter
-
public class TypeConverter extends Object
This class converts an ImageProcessor to another data type.
-
-
Constructor Summary
Constructors Constructor Description TypeConverter(ImageProcessor ip, boolean doScaling)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageProcessorconvertToByte()Converts processor to a ByteProcessor.ImageProcessorconvertToFloat(float[] ctable)Converts processor to a FloatProcessor.ImageProcessorconvertToRGB()Converts processor to a ColorProcessor.ImageProcessorconvertToShort()Converts processor to a ShortProcessor.
-
-
-
Constructor Detail
-
TypeConverter
public TypeConverter(ImageProcessor ip, boolean doScaling)
-
-
Method Detail
-
convertToByte
public ImageProcessor convertToByte()
Converts processor to a ByteProcessor.
-
convertToShort
public ImageProcessor convertToShort()
Converts processor to a ShortProcessor.
-
convertToFloat
public ImageProcessor convertToFloat(float[] ctable)
Converts processor to a FloatProcessor.
-
convertToRGB
public ImageProcessor convertToRGB()
Converts processor to a ColorProcessor.
-
-