public class HardcopyGrayscaleImageModule extends Module
| Modifier and Type | Field and Description |
|---|---|
static ISingleCollection<ITag> |
objSingleCollection
The obj single collection.
|
| Constructor and Description |
|---|
HardcopyGrayscaleImageModule(IDataSet objIDataSet)
Instantiates a new hardcopy grayscale 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 |
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 Hardcopy Grayscale
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 |
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 HardcopyGrayscaleImageModule(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 - the enum samples per pixelpublic void setPhotometricInterpretation(EnumPhotometricInterpretation enumPhotometricInterpretation)
enumPhotometricInterpretation - the enum 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 allocated
Enumerated Values:
8 (if Bits Stored = 8)
16 (if Bits Stored =12)public void setBitsStored(EnumBitsStored enumBitsStored)
enumBitsStored - the enum bits storedpublic void setHighBit(EnumHighBit enumHighBit)
enumHighBit - the enum high bitpublic void setPixelRepresentation(EnumPixelRepresentation enumPixelRepresentation)
enumPixelRepresentation - the enum 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 setPixelAspectRatio(java.lang.String[] strPixelAspectRatio)
strPixelAspectRatio - the 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 java.lang.String[] getPixelAspectRatio()
public ISingleCollection<ITag> getVectorOfKeys()
getVectorOfKeys in class Module