Class ShearWarpColorMIP
- java.lang.Object
-
- gov.nih.mipav.view.renderer.J3D.volumeview.Renderer
-
- gov.nih.mipav.view.renderer.J3D.volumeview.ShearWarpRenderer
-
- gov.nih.mipav.view.renderer.J3D.volumeview.ShearWarpColor
-
- gov.nih.mipav.view.renderer.J3D.volumeview.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 Summary
Fields Modifier and Type Field Description protected byte[]
m_acImageI
intensity channel computed for combination of RGB channels.protected float[]
m_afInterI
DOCUMENT ME!-
Fields inherited from class gov.nih.mipav.view.renderer.J3D.volumeview.ShearWarpColor
m_acImageA, m_acImageB, m_acImageG, m_acImageR, m_afInterB, m_afInterG, m_afInterR, m_kMap, m_kNormalizeB, m_kNormalizeG, m_kNormalizeR
-
Fields inherited from class gov.nih.mipav.view.renderer.J3D.volumeview.ShearWarpRenderer
m_aaaasEncode, m_aaasVolumeEncode, m_aafBox, m_aafM, m_aaiIndex, m_aasSliceEncode, m_afA, m_afB, m_afOffset, m_afShear, m_aiBound, m_aiClipMax, m_aiClipMin, m_aiCurrentI, m_aiInterC, m_aiSliceBound, m_aiSliceMax, m_aiSliceMin, m_asSkip, m_bDoEncodeSkip, m_fInv255, m_iI0, m_iInterBound, m_iInterBoundM1, m_iInterIndex, m_iInterOffset, m_iInterQuantity, m_iPermute, m_iPixel, m_iQuantity, m_iSIndex, m_iSlice, m_iSliceQuantity, m_kP00, m_kP01, m_kP10, m_kP11, m_kPosition
-
Fields inherited from class gov.nih.mipav.view.renderer.J3D.volumeview.Renderer
m_aiRImage, m_akAxis, m_akNormal, m_bParallel, m_bReloadInput, m_fAngle, m_fExtreme, m_fFMult, m_fGamma, m_fNear, m_fRScaleX, m_fRScaleY, m_fXTrn, m_fYTrn, m_fZoom, m_iMaxBound, m_iMinBound, m_iRBound, m_iXBound, m_iXBoundM1, m_iXBoundM2, m_iXYProduct, m_iXYZProduct, m_iYBound, m_iYBoundM1, m_iYBoundM2, m_iZBound, m_iZBoundM1, m_iZBoundM2, m_kBackgroundColor, m_kEyeModel, m_kEyeWorld, m_kImage, m_kLightSet, m_kMaterial, m_kRotate
-
-
Constructor Summary
Constructors Constructor Description ShearWarpColorMIP(ModelImage kImage, int iFinalBound, int[] aiFinal)
Create an summed intensity renderer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
beforeResampleAll(int k0, int k1, int k2)
This is a callback to be executed before resampleAll is executed.void
disposeLocal()
Clean memory.protected void
finalize()
Calls dispose.protected void
resampleSingle()
Resample a single slice of the permuted volume data.void
setInput(byte[] acImageR, byte[] acImageG, byte[] acImageB, byte[] acImageA)
Specify the input volume to use for rendering.void
setInputMap(RendererMapColor kMap)
Specify the lookup table to use for mapping input RGB colors to intensity.protected void
traceInit()
Called at the beginning of the trace methods.boolean
usesNormals()
Return indication as to whether or not the particular renderer uses normal vectors as part of its implementation.-
Methods inherited from class gov.nih.mipav.view.renderer.J3D.volumeview.ShearWarpColor
hasInputData, hasInputMap, mapIntermediateToFinal, resampleAll
-
Methods inherited from class gov.nih.mipav.view.renderer.J3D.volumeview.ShearWarpRenderer
beforeResampleSingle, composite, computeEncode, computePositions, fromFloat, fromInt, getAxis, getAxis, initializeEncodeSkip, rotateBy, rotateFrameBy, setAxis, setParallel, setXBoundNeg, setXBoundPos, setYBoundNeg, setYBoundPos, setZBoundNeg, setZBoundPos, skipToNonopaque, toFloat, toInt, updateSkip
-
Methods inherited from class gov.nih.mipav.view.renderer.J3D.volumeview.Renderer
computeIntegralNormalizationFactor, convertWorldToModel, getAngle, getBackgroundColor, getExtreme, getEyeDist, getEyePoint, getGamma, getMaxBound, getMinBound, getNear, getParallel, getXBound, getXTranslate, getYBound, getYTranslate, getZBound, getZoom, hasNormals, orthonormalize, reloadInputData, reloadInputData, setAngle, setBackgroundColor, setExtreme, setEyeDist, setGamma, setLighting, setMaterialShininess, setNear, setNearAndAngle, setNormals, setXTranslate, setYTranslate, setZoom
-
-
-
-
Constructor Detail
-
ShearWarpColorMIP
public ShearWarpColorMIP(ModelImage kImage, int iFinalBound, int[] aiFinal)
Create an summed intensity renderer.- Parameters:
kImage
- the 3D imageiFinalBound
- the dimension of the square 2D renderer imageaiFinal
- 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
-
disposeLocal
public void disposeLocal()
Clean memory.- Overrides:
disposeLocal
in classShearWarpColor
-
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 interfaceRendererInterfaceColor
- Overrides:
setInput
in classShearWarpColor
- 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.
-
setInputMap
public void setInputMap(RendererMapColor kMap)
Specify the lookup table to use for mapping input RGB colors to intensity.- Specified by:
setInputMap
in interfaceRendererInterfaceColor
- Overrides:
setInputMap
in classShearWarpColor
- Parameters:
kMap
- Look up table for mapping the color values to intensity.
-
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 classRenderer
- 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 classShearWarpRenderer
- 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 classShearWarpColor
- Throws:
java.lang.Throwable
- DOCUMENT ME!
-
resampleSingle
protected void resampleSingle()
Resample a single slice of the permuted volume data.- Overrides:
resampleSingle
in classShearWarpRenderer
-
-