public abstract class DicomPixelInterpolator extends java.lang.Object implements CompositeProperty
Modifier and Type | Field and Description |
---|---|
static PropertyList |
myProps |
Constructor and Description |
---|
DicomPixelInterpolator() |
Modifier and Type | Method and Description |
---|---|
DicomPixelInterpolator |
clone()
Returns a clone of this composite property.
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
Property |
getProperty(java.lang.String name)
Returns a property associated with a specified path name.
|
HasProperties |
getPropertyHost()
Should be either HierarchyNode or HasProperties
|
PropertyInfo |
getPropertyInfo()
If this object is a property, returns the corresponding information
|
static java.lang.Class<?>[] |
getSubClasses() |
boolean |
hasProperty(java.lang.String name) |
abstract int |
interp(DicomPixelBuffer in,
int idx,
DicomPixelBuffer out,
int odx)
Interpolates between two pixel buffers whose class determines their value
representation type
|
abstract int |
interpByteByte(byte[] in,
int idx,
byte[] out,
int odx)
Interpolates from grayscale (byte) to grayscale (byte) values
|
abstract int |
interpByteRGB(byte[] in,
int idx,
byte[] out,
int odx)
Interpolates from grayscale (byte) to RGB (byte) values
|
abstract int |
interpByteShort(byte[] in,
int idx,
short[] out,
int odx)
Interpolates from grayscale (byte) to grayscale (short) values
|
abstract int |
interpRGBByte(byte[] in,
int idx,
byte[] out,
int odx)
Interpolates from RGB (byte) to grayscale (byte) values
|
abstract int |
interpRGBRGB(byte[] in,
int idx,
byte[] out,
int odx)
Interpolates from RGB (byte) to RGB (byte) values
|
abstract int |
interpRGBShort(byte[] in,
int idx,
short[] out,
int odx)
Interpolates from RGB (byte) to grayscale (short) values
|
abstract int |
interpShortByte(short[] in,
int idx,
byte[] out,
int odx)
Interpolates from grayscale (short) to grayscale (byte) values
|
abstract int |
interpShortRGB(short[] in,
int idx,
byte[] out,
int odx)
Interpolates from grayscale (short) to RGB (byte) values
|
abstract int |
interpShortShort(short[] in,
int idx,
short[] out,
int odx)
Interpolates from grayscale (short) to grayscale (short) values
|
boolean |
isWritable() |
void |
scan(ReaderTokenizer rtok,
java.lang.Object ref) |
void |
setPropertyHost(HasProperties newParent)
Sets the host for this property.
|
void |
setPropertyInfo(PropertyInfo info)
Sets the property information for this property.
|
void |
write(java.io.PrintWriter pw,
NumberFormat fmt,
java.lang.Object ref) |
public static PropertyList myProps
public static java.lang.Class<?>[] getSubClasses()
public PropertyInfo getPropertyInfo()
CompositeProperty
getPropertyInfo
in interface CompositeProperty
public void setPropertyInfo(PropertyInfo info)
CompositeProperty
setPropertyInfo
in interface CompositeProperty
info
- property informationpublic HasProperties getPropertyHost()
CompositeProperty
getPropertyHost
in interface CompositeProperty
public void setPropertyHost(HasProperties newParent)
CompositeProperty
setPropertyHost
in interface CompositeProperty
newParent
- host for this propertypublic Property getProperty(java.lang.String name)
HasProperties
.
' characters. A sub-property
exists if the value of a property is itself an object which exports
properties. It is only possible to obtain a sub-property handle if each of
its ancestor properties exports their values by reference.getProperty
in interface HasProperties
name
- name of the desired property or sub-propertypublic boolean hasProperty(java.lang.String name)
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
public DicomPixelInterpolator clone()
CompositeProperty
clone
in interface CompositeProperty
clone
in interface Clonable
clone
in class java.lang.Object
public boolean isWritable()
public void write(java.io.PrintWriter pw, NumberFormat fmt, java.lang.Object ref) throws java.io.IOException
java.io.IOException
public void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
java.io.IOException
public abstract int interpByteRGB(byte[] in, int idx, byte[] out, int odx)
in
- input pixel valuesidx
- starting input indexout
- output buffer to fillodx
- starting output indexpublic abstract int interpByteByte(byte[] in, int idx, byte[] out, int odx)
in
- input pixel valuesidx
- starting input indexout
- output buffer to fillodx
- starting output indexpublic abstract int interpByteShort(byte[] in, int idx, short[] out, int odx)
in
- input pixel valuesidx
- starting input indexout
- output buffer to fillodx
- starting output indexpublic abstract int interpRGBRGB(byte[] in, int idx, byte[] out, int odx)
in
- input pixel valuesidx
- starting input indexout
- output buffer to fillodx
- starting output indexpublic abstract int interpRGBByte(byte[] in, int idx, byte[] out, int odx)
in
- input pixel valuesidx
- starting input indexout
- output buffer to fillodx
- starting output indexpublic abstract int interpRGBShort(byte[] in, int idx, short[] out, int odx)
in
- input pixel valuesidx
- starting input indexout
- output buffer to fillodx
- starting output indexpublic abstract int interpShortRGB(short[] in, int idx, byte[] out, int odx)
in
- input pixel valuesidx
- starting input indexout
- output buffer to fillodx
- starting output indexpublic abstract int interpShortByte(short[] in, int idx, byte[] out, int odx)
in
- input pixel valuesidx
- starting input indexout
- output buffer to fillodx
- starting output indexpublic abstract int interpShortShort(short[] in, int idx, short[] out, int odx)
in
- input pixel valuesidx
- starting input indexout
- output buffer to fillodx
- starting output indexpublic abstract int interp(DicomPixelBuffer in, int idx, DicomPixelBuffer out, int odx)
in
- input pixel valuesidx
- starting input indexout
- output buffer to fillodx
- starting output index