public class ReaderDicomFileInfo extends DisposableObject
It is class for reading header info from DICOM file
Constructor and Description |
---|
ReaderDicomFileInfo()
Initializes a new instance of the
ReaderDicomFileInfo class. |
ReaderDicomFileInfo(InputStream stream)
Initializes a new instance of the
ReaderDicomFileInfo class. |
ReaderDicomFileInfo(com.aspose.ms.System.IO.Stream stream) |
Modifier and Type | Method and Description |
---|---|
int |
getBitsAllocated()
Gets a value of the "bitsAllocated".
|
byte[] |
getBlues()
Gets the array colors of the blue
|
boolean |
getDicomFound()
Gets a value indicating whether "DICOM".
|
byte[] |
getDicomHeaderInfoByBytes()
Gets the dicom header information by bytes.
|
List<String> |
getDicomInfo()
Gets the header information of the DICOM file.
|
byte[] |
getGreens()
Gets the array colors of the green
|
int |
getHeight()
Gets the height.
|
boolean |
getHeightTagFound()
Gets a value indicating whether [height tag found].
|
int |
getLengthValue()
Gets the length of element.
|
int |
getNumberOfFrames()
Gets the number of frames.
|
int |
getOffset()
Gets the offset.
|
String |
getPhotoInterpretation()
Gets a value of the "PhotoInterpretation".
|
int |
getPixelRepresentation()
Gets a value of the pixel "pixelRepresentation".
|
int |
getPlanarConfiguration()
Gets the planar configuration.
|
byte[] |
getReds()
Gets the array colors of the red
|
double |
getRescaleIntercept()
Gets a value of the "rescaleIntercept".
|
double |
getRescaleSlope()
Gets a value of the "rescaleSlope".
|
int |
getSamplesPerPixel()
Gets a value of the "samplesPerPixel".
|
boolean |
getSignedImage()
Gets or sets a value indicating whether "signedImage".
|
int |
getWidth()
Gets the width.
|
boolean |
getWidthTagFound()
Gets a value indicating whether [width tag found].
|
double |
getWindowCentre()
Gets or sets the window centre.
|
double |
getWindowWidth()
Gets or sets the width of the window.
|
boolean |
isLittleEndian()
Gets a value indicating whether this instance is little endian.
|
void |
setSignedImage(boolean value)
Sets a value indicating whether "signedImage".
|
void |
setWindowCentre(double value)
Gets or sets the window centre.
|
void |
setWindowWidth(double value)
Gets or sets the width of the window.
|
close, dispose, getDisposed
public ReaderDicomFileInfo(InputStream stream)
Initializes a new instance of the ReaderDicomFileInfo
class.
stream
- The reader of the DICOM file.public ReaderDicomFileInfo(com.aspose.ms.System.IO.Stream stream)
public ReaderDicomFileInfo()
Initializes a new instance of the ReaderDicomFileInfo
class.
public byte[] getDicomHeaderInfoByBytes()
Gets the dicom header information by bytes.
public int getPlanarConfiguration()
Gets the planar configuration.
public boolean getSignedImage()
Gets or sets a value indicating whether "signedImage".
public void setSignedImage(boolean value)
Sets a value indicating whether "signedImage".
value
- a value indicating whether "signedImage"public List<String> getDicomInfo()
Gets the header information of the DICOM file.
The following example shows how to read the header information of a DICOM image.
String dir = "c:\\aspose.imaging\\java\\issues\\1489\\"; com.aspose.imaging.fileformats.dicom.DicomImage image = (com.aspose.imaging.fileformats.dicom.DicomImage) com.aspose.imaging.Image.load(dir + "ttfm.dcm"); try { for (String s : image.getFileInfo().getDicomInfo()) { System.out.println(s); } } finally { image.close(); } // STDOUT: //Media Storage Sop Class Uid: 1.2.840.10008.5.1.4.1.1.3.1 //Media Storage Sop Instance Uid: 2.16.840.1.114488.0.4.123489834087.1330071425.2 //Transfer Syntax Uid: 1.2.840.10008.1.2.4.70 //Implementation Class Uid: 1.2.840.114236 //Specific Character Set: ISO_IR 100 //Image Type: \SECONDARY\INTRAOPERATIVE //Sop Class Uid: 1.2.840.10008.5.1.4.1.1.3.1 //Sop Instance Uid: 2.16.840.1.114488.0.4.123489834087.1330071425.2 //Study Date: 20110824 //Series Date: 20110824 //Content Date: 20110824 //Study Time: 094836.214743984 //Series Time: 094836.214743984 //Content Time: 100451.214743816 //Modality: US //Manufacturer: Medistim //Institution Name: Hospital Name //Institution Address: Hospital Address or Department //Station Name: VERIQ //Performing Physician's Name: CA Prof. Debus //Manufacturer's Model Name: VeriQ C //Recommended Display Frame Rate: 1 //Patient's Name: Femoral trombenarterectomy^Case Report: //Patient Id: Case Report 1 //Patient's Sex: M //Patient's Size: 0 //Patient's Weight: 0 //Patient Comments: See case report on www.medistim.com //Cine Rate: 1 //Effective Duration: 1 //Device Serial Number: 0 //Software Versions(s): 3.3.0 RC0 built 02 / 23 / 12 09:50:45 //Frame Time: 1000 //Study Instance Uid: 2.16.840.1.114488.0.4.123489834087.1330071425.0 //Series Instance Uid: 2.16.840.1.114488.0.4.123489834087.1330071425.1 //Series Number: 1 //Instance Number: 1 //Samples per Pixel: 3 //Photometric Interpretation: RGB //Planar Configuration: 0 //Number of Frames: 1 //Frame Increment Pointer: //Rows: 768 //Columns: 1024 //Bits Allocated: 8 //Bits Stored: 8 //high Bit: 7 //Pixel Representation: 0 //Lossy Image Compression: 00 //Pixel Data: 1492
public int getSamplesPerPixel()
Gets a value of the "samplesPerPixel".
public int getBitsAllocated()
Gets a value of the "bitsAllocated".
public String getPhotoInterpretation()
Gets a value of the "PhotoInterpretation".
public boolean getWidthTagFound()
Gets a value indicating whether [width tag found].
true
if [width tag found]; otherwise, false
.public boolean getHeightTagFound()
Gets a value indicating whether [height tag found].
true
if [height tag found]; otherwise, false
.public int getWidth()
Gets the width.
public int getHeight()
Gets the height.
public double getWindowCentre()
Gets or sets the window centre.
public void setWindowCentre(double value)
Gets or sets the window centre.
value
- The a value of the window centre.public double getWindowWidth()
Gets or sets the width of the window.
public void setWindowWidth(double value)
Gets or sets the width of the window.
value
- The width of the window.public int getPixelRepresentation()
Gets a value of the pixel "pixelRepresentation".
public double getRescaleIntercept()
Gets a value of the "rescaleIntercept".
public double getRescaleSlope()
Gets a value of the "rescaleSlope".
public int getNumberOfFrames()
Gets the number of frames.
public boolean isLittleEndian()
Gets a value indicating whether this instance is little endian.
true
if this instance is little endian; otherwise, false
.public byte[] getReds()
Gets the array colors of the red
public byte[] getGreens()
Gets the array colors of the green
public byte[] getBlues()
Gets the array colors of the blue
public boolean getDicomFound()
Gets a value indicating whether "DICOM".
public int getOffset()
Gets the offset.
public int getLengthValue()
Gets the length of element.