Class ShearWarpColorMIP

  • All Implemented Interfaces:
    RendererInterfaceColor

    public class ShearWarpColorMIP
    extends ShearWarpColor
    A renderer for color volume data. The composited values are based on sums of intensity along rays parallel to coordinate axes. See the document ShearWarpRendering.pdf for a detailed description of the renderer architecture.
    • Field Detail

      • m_acImageI

        protected byte[] m_acImageI
        intensity channel computed for combination of RGB channels.
      • m_afInterI

        protected float[] m_afInterI
        DOCUMENT ME!
    • Constructor Detail

      • ShearWarpColorMIP

        public ShearWarpColorMIP​(ModelImage kImage,
                                 int iFinalBound,
                                 int[] aiFinal)
        Create an summed intensity renderer.
        Parameters:
        kImage - the 3D image
        iFinalBound - the dimension of the square 2D renderer image
        aiFinal - The 2D rendered image. The image is 24-bit RGB color, each pixel stored as a 32-bit integer. The 8 most significant bits are ignored. The blue channel is stored in the 8 least significant bits. The green channel is in the next 8 bits adjacent to the blue bits. The red channel is in the next 8 bits adjacent to the green channel.
    • Method Detail

      • setInput

        public void setInput​(byte[] acImageR,
                             byte[] acImageG,
                             byte[] acImageB,
                             byte[] acImageA)
        Specify the input volume to use for rendering. The image data stored in order of slice indices, each slice stored in row-major order. That is, slice z=0 is stored first, slice z=1 is stored next, and so on. In slice z=0, the y=0 row is stored first, the y=1 row is stored next, and so on.
        Specified by:
        setInput in interface RendererInterfaceColor
        Overrides:
        setInput in class ShearWarpColor
        Parameters:
        acImageR - byte[] Array of byte red values for volume.
        acImageG - byte[] Array of byte green values for volume.
        acImageB - byte[] Array of byte blue values for volume.
        acImageA - byte[] Array of byte alpha values for volume.
      • usesNormals

        public boolean usesNormals()
        Return indication as to whether or not the particular renderer uses normal vectors as part of its implementation.
        Specified by:
        usesNormals in class Renderer
        Returns:
        boolean True if the implementation uses normals.
      • beforeResampleAll

        protected void beforeResampleAll​(int k0,
                                         int k1,
                                         int k2)
        This is a callback to be executed before resampleAll is executed. The base class initializes various primitive quantities. This class needs its intermediate array corresponding to the composited intensity to be set to zero.
        Overrides:
        beforeResampleAll in class ShearWarpRenderer
        Parameters:
        k0 - a permutation, one of (0,1,2), (1,2,0), (2,0,1)
        k1 - DOCUMENT ME!
        k2 - DOCUMENT ME!
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Calls dispose.
        Overrides:
        finalize in class ShearWarpColor
        Throws:
        java.lang.Throwable - DOCUMENT ME!
      • resampleSingle

        protected void resampleSingle()
        Resample a single slice of the permuted volume data.
        Overrides:
        resampleSingle in class ShearWarpRenderer
      • traceInit

        protected void traceInit()
        Called at the beginning of the trace methods.
        Overrides:
        traceInit in class Renderer