Class ShearWarpIntensityDRR

  • All Implemented Interfaces:
    RendererInterfaceIntensity

    public class ShearWarpIntensityDRR
    extends ShearWarpIntensity
    A renderer for intensity 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.
    • Constructor Detail

      • ShearWarpIntensityDRR

        public ShearWarpIntensityDRR​(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[] 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 RendererInterfaceIntensity
        Overrides:
        setInput in class ShearWarpIntensity
        Parameters:
        acImageB - byte[] Array of byte intensity 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!
      • resampleSingle

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