public class ImagePixelMacro extends Macro
| Constructor and Description |
|---|
ImagePixelMacro(IDataSet objDataSet)
This constructor constructs a Macro with specified DataSet.
|
ImagePixelMacro(IDataSet objDataSet,
IDictionaryReader objDictionaryReader)
This constructor constructs a Macro with specified DataSet and DictionaryReader
|
ImagePixelMacro(IItem objItem)
This constructor constructs a Macro with the specified Item
|
ImagePixelMacro(IItem objItem,
IDictionaryReader objDictionaryReader)
This constructor constructs a Macro with the specified Item and DictionaryReader
|
| Modifier and Type | Method and Description |
|---|---|
short |
getBitsAllocated()
Retrieves Number of bits allocated for each pixel sample.
|
short |
getBitsStored()
Retrieves Number of bits stored for each pixel sample.
|
ISingleCollection<byte[]> |
getBluePaletteColorLookupTableData()
This method returns the value of the field Blue Palette Color Lookup Table Data
|
short[] |
getBluePaletteColorLookupTableDescriptor()
Retrieves the Blue Pallette Color Lookup Table Descriptor.
|
short |
getColumns()
Retrieves Number of columns in the image.
|
ISingleCollection<byte[]> |
getGreenPaletteColorLookupTableData()
This method returns the value of the field Green Palette Color Lookup Table Data
|
short[] |
getGreenPaletteColorLookupTableDescriptor()
Retrieves value that specifies the format of the Green Palette Color Lookup Table Data (0028,1202)
Required if Photometric Interpretation (0028,0004) has a value of PALETTE
COLOR or Pixel Presentation (0008,9205) at the image level equals COLOR or
MIXED.
|
short |
getHighBit()
Retrieves most significant bit for pixel sample data.
|
short |
getLargestImagePixelValue()
Retrieves the maximum actual pixel value encountered in this image.
|
java.lang.String |
getPhotometricInterpretation()
Retrieves value that specifies the intended interpretation of the pixel data.
|
java.lang.String[] |
getPixelAspectRatio()
Retrieves the pixel aspect ratio
|
ISingleCollection<byte[]> |
getPixelData()
Retrieves data stream of the pixel samples that comprise the Image.
|
short |
getPixelRepresentation()
Retrieves data representation of the pixel samples.
|
short |
getPlanarConfiguration()
Retrieves value that indicates whether the pixel data are sent color-by-plane or color-by-pixel.
|
ISingleCollection<byte[]> |
getRedPaletteColorLookupTableData()
Retrieves the Red Palette Color Lookup Table Data in the Image Pixel Macro
|
short[] |
getRedPaletteColorLookupTableDescriptor()
Retrieves value that specifies the format of the Red Palette Color Lookup Table Data (0028,1201)
|
short |
getRows()
Retrieves number of rows in the image.
|
short |
getSamplesPerPixel()
Retrieves Number of samples (planes) in this image.
|
short |
getSmallestImagePixelValue()
Retrieves the minimum actual pixel value encountered in this image.
|
void |
setBitsAllocated(short shBitsAllocated)
Sets Number of bits allocated for each pixel sample.
|
void |
setBitsStored(short shBitsStored)
Sets Number of bits stored for each pixel sample.
|
void |
setBluePaletteColorLookupTableData(ISingleCollection<byte[]> objSingleCollection)
This method sets the Blue Palette Color Lookup Table Data in the Image Pixel Macro
|
void |
setBluePaletteColorLookupTableDescriptor(short[] shBluePaletteColorLookupTableDescriptor)
Sets the Blue Pallette Color Lookup Table Descriptor.
|
void |
setColumns(short shColumns)
Sets Number of columns in the image.
|
void |
setGreenPaletteColorLookupTableData(ISingleCollection<byte[]> objSingleCollection)
Sets value of Green Palette Color Lookup Table Data
|
void |
setGreenPaletteColorLookupTableDescriptor(short[] shGreenPaletteColorLookupTableDescriptor)
Sets value that specifies the format of the Green Palette Color Lookup Table Data (0028,1202)
Required if Photometric Interpretation (0028,0004) has a value of PALETTE
COLOR or Pixel Presentation (0008,9205) at the image level equals COLOR or
MIXED.
|
void |
setHighBit(short shHighBit)
Sets Most significant bit for pixel sample data.
|
void |
setLargestImagePixelValue(short shLargestImagePixelValue)
Sets the maximum actual pixel value encountered in this image.
|
void |
setPhotometricInterpretation(java.lang.String strPhotometricInterpretation)
Sets value that specifies the intended interpretation of the pixel data.
|
void |
setPixelAspectRatio(java.lang.String strPixelAspectRatio)
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(short shPixelRepresentation)
Sets Data representation of the pixel samples.
|
void |
setPlanarConfiguration(short shPlanarConfiguration)
Sets value that indicates whether the pixel data are sent color-by-plane or color-by-pixel.
|
void |
setRedPaletteColorLookupTableData(ISingleCollection<byte[]> objSingleCollection)
This method sets the Red Palette Color Lookup Table Data in the Image Pixel Macro
|
void |
setRedPaletteColorLookupTableDescriptor(short[] shRedPaletteColorLookupTableDescriptor)
sets value that specifies the format of the Red Palette Color Lookup Table Data (0028,1201)
|
void |
setRows(short shRows)
Sets Number of rows in the image.
|
void |
setSamplesPerPixel(short shSamplesPerPixel)
Sets Number of samples (planes) in this image.
|
void |
setSmallestImagePixelValue(short shSmallestImagePixelValue)
Sets the minimum actual pixel value encountered in this image.
|
boolean |
validate()
Validates all the attributes in CodeSequenceMacro
|
static boolean |
validate(IDataSet objIDataSet)
Validates all the attributes in CodeSequenceMacro that are present in the DataSet
|
static boolean |
validate(IItem objIItem)
Validates all the attributes in CodeSequenceMacro that are present in the DataSet
|
addDataElement, clone, contains, getDataElement, getTransferSyntaxpublic ImagePixelMacro(IDataSet objDataSet)
objDataSet - Collection of DataElementspublic ImagePixelMacro(IDataSet objDataSet, IDictionaryReader objDictionaryReader)
objDataSet - specifies the DataSetobjDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic ImagePixelMacro(IItem objItem)
objItem - specifies instance of Item classpublic ImagePixelMacro(IItem objItem, IDictionaryReader objDictionaryReader)
objItem - specifies instance of Item classobjDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic void setSamplesPerPixel(short shSamplesPerPixel)
shSamplesPerPixel - short value of Samples per Pixel.public short getSamplesPerPixel()
public void setPhotometricInterpretation(java.lang.String strPhotometricInterpretation)
strPhotometricInterpretation - String valeu of Photometric Interpretation.public java.lang.String getPhotometricInterpretation()
public void setRows(short shRows)
shRows - short value of rows.public short getRows()
public void setColumns(short shColumns)
shColumns - short value of Columns.public short getColumns()
public void setBitsAllocated(short shBitsAllocated)
shBitsAllocated - short specifies the number of bits allocatedpublic short getBitsAllocated()
public void setBitsStored(short shBitsStored)
shBitsStored - specifies the number of bits storedpublic short getBitsStored()
public void setHighBit(short shHighBit)
shHighBit - specifies the high bitpublic short getHighBit()
public void setPixelRepresentation(short shPixelRepresentation)
shPixelRepresentation - specifies the pixel representationpublic short getPixelRepresentation()
public 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 ISingleCollection<byte[]> getPixelData()
public void setPlanarConfiguration(short shPlanarConfiguration)
shPlanarConfiguration - short value specifies planar configuration of the image.public short getPlanarConfiguration()
public void setPixelAspectRatio(java.lang.String strPixelAspectRatio)
sPixelAspectRatio - specifies the pixel aspect ratio.public java.lang.String[] getPixelAspectRatio()
public void setSmallestImagePixelValue(short shSmallestImagePixelValue)
shSmallestImagePixelValue - short specifies the value of smallest image pixelpublic short getSmallestImagePixelValue()
public void setLargestImagePixelValue(short shLargestImagePixelValue)
shLargestImagePixelValue - specifies the value of largest image pixel.public short getLargestImagePixelValue()
public void setRedPaletteColorLookupTableDescriptor(short[] shRedPaletteColorLookupTableDescriptor)
shRedPaletteColorLookupTableDescriptor - specifies the pallette color lookup table descriptorpublic short[] getRedPaletteColorLookupTableDescriptor()
public void setGreenPaletteColorLookupTableDescriptor(short[] shGreenPaletteColorLookupTableDescriptor)
shGreenPaletteColorLookupTableDescriptor - specifies the Green Pallette Color Lookup Table Descriptorpublic short[] getGreenPaletteColorLookupTableDescriptor()
public void setBluePaletteColorLookupTableDescriptor(short[] shBluePaletteColorLookupTableDescriptor)
shBluePaletteColorLookupTableDescriptor - specifies blue pallette color lookup table descriptorpublic short[] getBluePaletteColorLookupTableDescriptor()
public void setRedPaletteColorLookupTableData(ISingleCollection<byte[]> objSingleCollection)
objSingleCollection - SingleCollection of bytefor Red Palette Color Lookup Table Data.public ISingleCollection<byte[]> getRedPaletteColorLookupTableData()
public void setGreenPaletteColorLookupTableData(ISingleCollection<byte[]> objSingleCollection)
objSingleCollection - ISingleCollection of bytespublic ISingleCollection<byte[]> getGreenPaletteColorLookupTableData()
public void setBluePaletteColorLookupTableData(ISingleCollection<byte[]> objSingleCollection)
objSingleCollection - of bytespublic ISingleCollection<byte[]> getBluePaletteColorLookupTableData()
public boolean validate()
throws ValidationException
ValidationException - throws ValidationException If Mandatory or Conditional element fails.public static boolean validate(IDataSet objIDataSet) throws InvalidMacroException
objIDataSet - collection of DataElementsValidationException - throws ValidationException If Mandatory or Conditional element fails.InvalidMacroException - Signals Macro Validation is failed.public static boolean validate(IItem objIItem) throws InvalidMacroException
objIItem - collection of DataElements in a sequenceValidationException - throws ValidationException If Mandatory or Conditional element fails.InvalidMacroException - Signals Macro Validation is failed.