Packages

 

com.aspose.imaging.fileformats.dicom

Class ReaderDicomFileInfo

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable, Closeable, AutoCloseable


    public class ReaderDicomFileInfo
    extends DisposableObject

    It is class for reading header info from DICOM file

    • Constructor Detail

      • ReaderDicomFileInfo

        public ReaderDicomFileInfo(InputStream stream)

        Initializes a new instance of the ReaderDicomFileInfo class.

        Parameters:
        stream - The reader of the DICOM file.
      • ReaderDicomFileInfo

        public ReaderDicomFileInfo(com.aspose.ms.System.IO.Stream stream)
      • ReaderDicomFileInfo

        public ReaderDicomFileInfo()

        Initializes a new instance of the ReaderDicomFileInfo class.

    • Method Detail

      • getDicomHeaderInfoByBytes

        public byte[] getDicomHeaderInfoByBytes()

        Gets the dicom header information by bytes.

        Returns:
        The dicom header information by bytes.
      • getPlanarConfiguration

        public int getPlanarConfiguration()

        Gets the planar configuration.

        Returns:
        The planar configuration.
      • getSignedImage

        public boolean getSignedImage()

        Gets or sets a value indicating whether "signedImage".

        Returns:
        a value indicating whether "signedImage"
      • setSignedImage

        public void setSignedImage(boolean value)

        Sets a value indicating whether "signedImage".

        Parameters:
        value - a value indicating whether "signedImage"
      • getDicomInfo

        public List<String> getDicomInfo()

        Gets the header information of the DICOM file.

      • getSamplesPerPixel

        public int getSamplesPerPixel()

        Gets a value of the "samplesPerPixel".

        Returns:
        The value of the "samplesPerPixel".
      • getBitsAllocated

        public int getBitsAllocated()

        Gets a value of the "bitsAllocated".

        Returns:
        The a value of the "bitsAllocated".
      • getPhotoInterpretation

        public String getPhotoInterpretation()

        Gets a value of the "PhotoInterpretation".

        Returns:
        The a value of the "photointerpretation".
      • getWidthTagFound

        public boolean getWidthTagFound()

        Gets a value indicating whether [width tag found].

        Returns:
        true if [width tag found]; otherwise, false.
      • getHeightTagFound

        public boolean getHeightTagFound()

        Gets a value indicating whether [height tag found].

        Returns:
        true if [height tag found]; otherwise, false.
      • getWidth

        public int getWidth()

        Gets the width.

        Returns:
        The a value of the width.
      • getHeight

        public int getHeight()

        Gets the height.

        Returns:
        The a value of the height.
      • getWindowCentre

        public double getWindowCentre()

        Gets or sets the window centre.

        Returns:
        The a value of the window centre.
      • setWindowCentre

        public void setWindowCentre(double value)

        Gets or sets the window centre.

        Parameters:
        value - The a value of the window centre.
      • getWindowWidth

        public double getWindowWidth()

        Gets or sets the width of the window.

        Returns:
        The width of the window.
      • setWindowWidth

        public void setWindowWidth(double value)

        Gets or sets the width of the window.

        Parameters:
        value - The width of the window.
      • getPixelRepresentation

        public int getPixelRepresentation()

        Gets a value of the pixel "pixelRepresentation".

        Returns:
        The a value of the "pixelRepresentation".
      • getRescaleIntercept

        public double getRescaleIntercept()

        Gets a value of the "rescaleIntercept".

        Returns:
        The a value of the "rescaleIntercept".
      • getRescaleSlope

        public double getRescaleSlope()

        Gets a value of the "rescaleSlope".

        Returns:
        The a value of the "rescaleSlope".
      • getNumberOfFrames

        public int getNumberOfFrames()

        Gets the number of frames.

        Returns:
        The number of frames.
      • isLittleEndian

        public boolean isLittleEndian()

        Gets a value indicating whether this instance is little endian.

        Returns:
        true if this instance is little endian; otherwise, false.
      • getReds

        public byte[] getReds()

        Gets the array colors of the red

        Returns:
        The reds.
      • getGreens

        public byte[] getGreens()

        Gets the array colors of the green

        Returns:
        The reds color.
      • getBlues

        public byte[] getBlues()

        Gets the array colors of the blue

        Returns:
        The blues.
      • getDicomFound

        public boolean getDicomFound()

        Gets a value indicating whether "DICOM".

      • getOffset

        public int getOffset()

        Gets the offset.

        Returns:
        The a value of the offset.
      • getLengthValue

        public int getLengthValue()

        Gets the length of element.

        Returns:
        The length of element.