public class VoltexVolume extends Volume
Modifier and Type | Class and Description |
---|---|
protected static interface |
VoltexVolume.VoltexLoader
Abstract interface for the loader classes.
|
Volume.AverageByteLoader, Volume.ByteImage, Volume.ByteLoader, Volume.InputImage, Volume.IntImage, Volume.IntLoader, Volume.Loader, Volume.SaturatedIntLoader
Modifier and Type | Field and Description |
---|---|
protected voltex.VoltexVolume.ComponentCreator |
compCreator |
protected static ColorModel |
greyCM
The ColorModel used for 8-bit textures
|
protected static ColorModel |
rgbCM
The ColorModel used for RGB textures
|
Constructor and Description |
---|
VoltexVolume(ij.ImagePlus imp)
Initializes this Volume with the specified image.
|
VoltexVolume(ij.ImagePlus imp,
boolean[] ch)
Initializes this Volume with the specified image and channels.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
ImageComponent2D |
getImageComponentX(int index) |
ImageComponent2D |
getImageComponentY(int index) |
ImageComponent2D |
getImageComponentZ(int index) |
protected void |
initVoltexLoader()
Init the loader, based on the currently set data type, which is either
INT_DATA or BYTE_DATA.
|
protected static int |
powerOfTwo(int value)
Calculate the next power of two to the given value.
|
void |
restore(String path) |
boolean |
setAlphaLUTFullyOpaque()
Set the alpha channel to fully opaque.
|
boolean |
setAverage(boolean average)
If true, build an average byte from the specified channels (for each
pixel).
|
boolean |
setChannels(boolean[] ch)
Sets the channels which are to be used in this volume rendering.
|
void |
setImage(ij.ImagePlus imp,
boolean[] ch) |
boolean |
setLUTs(int[] r,
int[] g,
int[] b,
int[] a)
Set the lookup tables for this volume rendering.
|
void |
setNoCheckNoUpdate(int x,
int y,
int z,
int v) |
boolean |
setSaturatedVolumeRendering(boolean b)
If true, saturate the channels of RGB images; the RGB values of each pixels
are scaled so that at least one of the values is 255, the alpha value is
the average of the original RGB values.
|
void |
swap(String path) |
void |
updateData() |
getAlphaLUT, getAverage, getBlueLUT, getDataType, getGreenLUT, getImagePlus, getRedLUT, initDataType, initLoader, isAverage, isDefaultLUT, isSaturatedVolumeRendering, load, loadWithLUT, set, setNoCheck
protected static final ColorModel greyCM
protected static final ColorModel rgbCM
protected voltex.VoltexVolume.ComponentCreator compCreator
public VoltexVolume(ij.ImagePlus imp)
imp
- public VoltexVolume(ij.ImagePlus imp, boolean[] ch)
imp
- ch
- A boolean[] array of length three, which indicates whether the
red, blue and green channel should be read. This has only an
effect when reading color images.public void updateData()
public ImageComponent2D getImageComponentZ(int index)
public ImageComponent2D getImageComponentY(int index)
public ImageComponent2D getImageComponentX(int index)
public void setNoCheckNoUpdate(int x, int y, int z, int v)
public boolean setSaturatedVolumeRendering(boolean b)
Volume
setSaturatedVolumeRendering
in class Volume
public boolean setAverage(boolean average)
Volume
setAverage
in class Volume
public boolean setChannels(boolean[] ch)
setChannels
in class Volume
public boolean setLUTs(int[] r, int[] g, int[] b, int[] a)
public boolean setAlphaLUTFullyOpaque()
setAlphaLUTFullyOpaque
in class Volume
protected void initVoltexLoader()
protected static int powerOfTwo(int value)
value
- Copyright © 2015–2021 Fiji. All rights reserved.