Class ThreeDImageExporter

    • Method Detail

      • convert

        public void convert​(java.io.OutputStream outputStream,
                            int objectIndex)
                     throws java.io.IOException
        Description copied from interface: Exporter
        Converts the object at index objectIndex into the desired export type.
        Specified by:
        convert in interface Exporter<Array3DImage>
        Parameters:
        outputStream - the output stream for the output object
        objectIndex - the index of the input object of type T in the associated observational file area
        Throws:
        java.io.IOException
      • convert

        public void convert​(Array3DImage array3DImage,
                            java.io.OutputStream outputStream)
                     throws java.io.IOException
        Converts a 3D array file to a viewable image file.
        Specified by:
        convert in interface Exporter<Array3DImage>
        Parameters:
        outputStream - the output stream
        array3DImage - the array3DImage object to convert
        Throws:
        java.io.IOException - if there is an exception writing to the stream or reading the image
      • flip

        public void flip​(java.awt.image.BufferedImage image)
      • getTargetPixelDepth

        public int getTargetPixelDepth()
        Return the target image pixel depth in bits
        Returns:
        targetPixelBitDepth
      • setTargetPixelDepth

        public void setTargetPixelDepth​(int targetPixelDepth)
        Set the target pixel bit depth
        Parameters:
        targetPixelDepth - the target pixel bit depth
      • maximizeDynamicRange

        public boolean maximizeDynamicRange()
        Get whether or not input data elements are scaled up to the target pixel bit depth
        Returns:
        boolean
      • maximizeDynamicRange

        public void maximizeDynamicRange​(boolean dynamicRangeScaling)
        Set whether or not input data elements are scaled up to the maximum pixel bit depth
        Parameters:
        dynamicRangeScaling -
      • getExportType

        public java.lang.String getExportType()
        Get the export image format
        Returns:
        exportType the export image format
      • setExportType

        public void setExportType​(java.lang.String exportType)
        Set the export image format. The format is limited to those supported by Java.
        Specified by:
        setExportType in interface Exporter<Array3DImage>
        Parameters:
        exportType - the export image format
      • isSampleDirectionRight

        public boolean isSampleDirectionRight()
        Is the sample direction to the right?
        Returns:
        sampleDirectionRight
      • setSampleDirectionRight

        public void setSampleDirectionRight​(boolean sampleDirectionRight)
        Set the sample direction.
        Parameters:
        sampleDirectionRight -
      • isFirstIndexFastest

        public boolean isFirstIndexFastest()
        Is the first index fastest?
        Returns:
        firstIndexFastest
      • setFirstIndexFastest

        public void setFirstIndexFastest​(boolean firstIndexFastest)
        Set whether the first index is fastest.
        Parameters:
        firstIndexFastest -
      • getArray3DImage

        public Array3DImage getArray3DImage()
        Get the Array 3D Image
        Returns:
        pdsImage
      • setArray3DImage

        public void setArray3DImage​(Array3DImage img)
        Set the Array 3D Image
        Parameters:
        img -