public class HCColorImageModule extends Module
| Modifier and Type | Field and Description |
|---|---|
static ISingleCollection<ITag> |
objSingleCollection
The obj single collection.
|
| Constructor and Description |
|---|
HCColorImageModule(IDataSet objIDataSet)
Instantiates a new hC color image module.
|
| Modifier and Type | Method and Description |
|---|---|
short |
getBitsAllocated()
Retrieves the number of bits allocated.
|
short |
getBitsStored()
Retrieves the number of bits stored.
|
short |
getColumns()
Retrieves the number of columns.
|
short |
getHighBit()
Retrieves the high bit.
|
java.lang.String |
getPhotometricInterpretation()
Retrieves the photometric interpretation.
|
java.lang.String[] |
getPixelAspectRatio()
Retrieves the pixel aspect ratio.
|
ISingleCollection<byte[]> |
getPixelData()
Retrieves the collection of pixel data.
|
short |
getPixelRepresentation()
Retrieves the pixel representation.
|
short |
getPlanarConfiguration()
Retrieves the planar configuration.
|
short |
getRows()
Retrieves the number of rows.
|
short |
getSamplesPerPixel()
Retrieves the samples per pixel.
|
ISingleCollection<ITag> |
getVectorOfKeys()
This method returns the custom collection containing the list of DataElements belonging to the HCColor
Image Module specified by DICOM Standard.
|
void |
setBitsAllocated(EnumBitsAllocated enumBitsAllocated)
Sets number of bits allocated for each pixel sample.
|
void |
setBitsStored(EnumBitsStored enumBitsStored)
Sets number of bits stored for each pixel sample.
|
void |
setColumns(short sColumns)
Sets number of columns in the image.
|
void |
setHighBit(EnumHighBit enumHighBit)
Sets most significant bit for pixel sample data.
|
void |
setPhotometricInterpretation(EnumPhotometricInterpretation enumPhotometricInterpretation)
Sets the intended interpretation of the pixel data.
|
void |
setPixelAspectRatio(java.lang.String strPixelAspectRatio)
Sets Ratio of the vertical size and horizontal size of the pixels in the image specified by
a pair of integer values where the first value is the vertical pixel size.
|
void |
setPixelData(IDicomStream objIDicomStream,
int[] iFrameSizeArr,
EnumPixelDataVRType enumPixelDataVRType,
boolean isUndefined)
Sets a data stream of the pixel samples that comprise the Image.
|
void |
setPixelData(ISingleCollection<byte[]> objCollectionOfPixelData,
EnumPixelDataVRType enumPixelDataVRType,
boolean isUndefined)
Sets a data stream of the pixel samples that comprise the Image.
|
void |
setPixelRepresentation(EnumPixelRepresentation enumPixelRepresentation)
Sets Data representation of the pixel samples.
|
void |
setPlanarConfiguration(EnumPlanarConfiguration enumPlanarConfiguration)
Sets Indicates whether the pixel data are sent color-by-plane or color-by-pixel.
|
void |
setRows(short sRows)
Sets number of rows in the image.This describes the images's height.
|
void |
setSamplesPerPixel(EnumSamplesPerPixel enumSamplesPerPixel)
Sets Samples per Pixel (0028,0002) that is the number of separate planes in the image.
|
boolean |
validateModule()
This method validates each Attribute in the Module according to the Type
of the Attribute.Attributes are of 5 types.
|
add, dumpDICOMInfo, getDictionaryReader, getTransferSyntax, isPresent, isPresent, iterator, removepublic static ISingleCollection<ITag> objSingleCollection
public HCColorImageModule(IDataSet objIDataSet)
objIDataSet - the obj i data setpublic boolean validateModule()
throws InvalidModuleException
validateModule in interface IModulevalidateModule in class ModuleInvalidModuleException - the invalid module exceptionpublic void setSamplesPerPixel(EnumSamplesPerPixel enumSamplesPerPixel)
enumSamplesPerPixel - - specifies the samples per pixel in the imagepublic void setPhotometricInterpretation(EnumPhotometricInterpretation enumPhotometricInterpretation)
enumPhotometricInterpretation - - Enum value Photometric Interpretationpublic void setRows(short sRows)
sRows - the s rowspublic void setColumns(short sColumns)
sColumns - the s columnspublic void setBitsAllocated(EnumBitsAllocated enumBitsAllocated)
enumBitsAllocated - - specifies the number of bits allocatedpublic void setBitsStored(EnumBitsStored enumBitsStored)
enumBitsStored - - specifies the number of bits storedpublic void setHighBit(EnumHighBit enumHighBit)
enumHighBit - - specifies the high bitpublic void setPixelRepresentation(EnumPixelRepresentation enumPixelRepresentation)
enumPixelRepresentation - - specifies the pixel representationpublic void setPixelData(ISingleCollection<byte[]> objCollectionOfPixelData, EnumPixelDataVRType enumPixelDataVRType, boolean isUndefined)
objCollectionOfPixelData - the obj collection of pixel dataenumPixelDataVRType - VR type pf the pixel data . It can be OW/OB.isUndefined - true then the Data Element created is of undefined length.
false then the Data Element created is of defined length.public void setPixelData(IDicomStream objIDicomStream, int[] iFrameSizeArr, EnumPixelDataVRType enumPixelDataVRType, boolean isUndefined) throws java.io.IOException
objIDicomStream - the Dicom Stream Containing pixel dataiFrameSizeArr - int array containing size of each frame.enumPixelDataVRType - VR type pf the pixel data . It can be OW/OB.isUndefined - true then the Data Element created is of undefined length.
false then the Data Element created is of defined length.java.io.IOExceptionpublic void setPlanarConfiguration(EnumPlanarConfiguration enumPlanarConfiguration)
enumPlanarConfiguration - the enum planar configurationpublic void setPixelAspectRatio(java.lang.String strPixelAspectRatio)
strPixelAspectRatio - the str pixel aspect ratiopublic short getSamplesPerPixel()
public java.lang.String getPhotometricInterpretation()
public short getRows()
public short getColumns()
public short getBitsAllocated()
public short getBitsStored()
public short getHighBit()
public short getPixelRepresentation()
public ISingleCollection<byte[]> getPixelData()
public short getPlanarConfiguration()
public java.lang.String[] getPixelAspectRatio()
public ISingleCollection<ITag> getVectorOfKeys()
getVectorOfKeys in class Module