public interface DatasetView extends DataView
Dataset
and a Display
. The view takes
care of mapping the N-dimensional data into a representation suitable for
showing onscreen.Modifier and Type | Method and Description |
---|---|
void |
autoscale(int c)
Autoscales the display range to match the data range, for
the given channel.
|
int |
getChannelCount()
Gets the number of channels in the displayed data.
|
double |
getChannelMax(int c)
Gets the maximum value in the display range, for the given
channel.
|
double |
getChannelMin(int c)
Gets the minimum value in the display range, for the given
channel.
|
ColorRGB |
getColor(ChannelCollection channels) |
ColorMode |
getColorMode() |
List<ColorTable> |
getColorTables() |
int |
getCompositeDimIndex() |
Dataset |
getData()
Gets the
Data represented by this view. |
CompositeXYProjector<? extends RealType<?>> |
getProjector() |
ARGBScreenImage |
getScreenImage() |
void |
resetColorTables(boolean grayscale) |
void |
setChannelRange(int c,
double min,
double max)
Sets the minimum and maximum values of the display range, for the
given channel.
|
void |
setChannelRanges(double min,
double max)
Sets the minimum and maximum values of the display range, globally
for all channels.
|
void |
setColorMode(ColorMode colorMode) |
void |
setColorTable(ColorTable colorTable,
int channel) |
void |
setComposite(boolean composite) |
RandomAccessibleInterval<? extends RealType<?>> |
xyPlane() |
RandomAccessibleInterval<? extends RealType<?>> |
xyPlane(RandomAccessibleInterval<? extends RealType<?>> interval) |
dispose, getPlanePosition, getPreferredHeight, getPreferredWidth, initialize, isCompatible, isSelected, rebuild, setSelected, update
getIntPosition, getLongPosition, setPosition
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, positionAsLongArray, positionAsPoint
localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
bck, fwd, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
context, getContext, setContext
ARGBScreenImage getScreenImage()
int getCompositeDimIndex()
CompositeXYProjector<? extends RealType<?>> getProjector()
int getChannelCount()
double getChannelMin(int c)
NB: This is a different value than that given by
ImageMetadata.getChannelMinimum(int)
; the latter is the minimum
data value for that channel, independent of any visualization.
double getChannelMax(int c)
NB: This is a different value than that given by
ImageMetadata.getChannelMaximum(int)
; the latter is the maximum
data value for that channel, independent of any visualization.
void setChannelRange(int c, double min, double max)
NB: This is a different range than that set by
ImageMetadata.setChannelMinimum(int, double)
and
ImageMetadata.setChannelMaximum(int, double)
; the latter methods set the
minimum and maximum data values for that channel, independent of
any visualization. They are typically kept synced with the actual data via
code such as net.imglib2.algorithm.stats.ComputeMinMax
.
void setChannelRanges(double min, double max)
NB: This is a different range than that set by
ImageMetadata.setChannelMinimum(int, double)
and
ImageMetadata.setChannelMaximum(int, double)
; the latter methods set the
minimum and maximum data values for that channel, independent of
any visualization. They are typically kept synced with the actual data via
code such as net.imglib2.algorithm.stats.ComputeMinMax
.
void autoscale(int c)
NB: The data range is obtained first from
ImageMetadata.getChannelMinimum(int)
and
ImageMetadata.getChannelMaximum(int)
; if they are not set there, they are
computed and cached for later use.
void setComposite(boolean composite)
List<ColorTable> getColorTables()
void setColorTable(ColorTable colorTable, int channel)
void resetColorTables(boolean grayscale)
ColorMode getColorMode()
void setColorMode(ColorMode colorMode)
Dataset getData()
DataView
Data
represented by this view.RandomAccessibleInterval<? extends RealType<?>> xyPlane()
RandomAccessibleInterval<? extends RealType<?>> xyPlane(RandomAccessibleInterval<? extends RealType<?>> interval)
interval
- - An interval to extract the current XY slice from.ColorRGB getColor(ChannelCollection channels)
Copyright © 2014–2022 ImageJ. All rights reserved.