public class PreviewImageDisplay extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
PreviewImageDisplay.ImageAnnotator
Interface for a location-aware image annotator to postprocess LUT-converted colors in
setImage(net.imglib2.RandomAccessibleInterval<net.imglib2.type.numeric.real.FloatType>, net.imglib2.converter.RealLUTConverter<net.imglib2.type.numeric.real.FloatType>, flimlib.flimj.ui.PreviewImageDisplay.ImageAnnotator) . |
Constructor and Description |
---|
PreviewImageDisplay(Pane pane,
Group cursor,
ImageView view) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Clean up.
|
RandomAccessibleInterval<ARGBType> |
getColorImage() |
<any> |
getCursorXProperty() |
<any> |
getCursorYProperty() |
double |
getValueUnderMouse(double x,
double y) |
void |
moveCursor(double x,
double y)
Moves the mouse cursor to the desired location.
|
void |
setImage(RandomAccessibleInterval<FloatType> src,
RealLUTConverter<FloatType> converter,
PreviewImageDisplay.ImageAnnotator annotator)
Shows an float-valued image, colored by a converter and possibly annotated by a annotator.
|
void |
setPixScale(double pixScale) |
public PreviewImageDisplay(Pane pane, Group cursor, ImageView view)
public <any> getCursorXProperty()
cursorX
public <any> getCursorYProperty()
cursorY
public RandomAccessibleInterval<ARGBType> getColorImage()
setImage(net.imglib2.RandomAccessibleInterval<net.imglib2.type.numeric.real.FloatType>, net.imglib2.converter.RealLUTConverter<net.imglib2.type.numeric.real.FloatType>, flimlib.flimj.ui.PreviewImageDisplay.ImageAnnotator)
public double getValueUnderMouse(double x, double y)
x
- the x coordinate of mousey
- the y coordinate of mousepublic void setImage(RandomAccessibleInterval<FloatType> src, RealLUTConverter<FloatType> converter, PreviewImageDisplay.ImageAnnotator annotator)
null
, the display will show the
PLACEHOLDER_IMAGE
.src
- The source imageconverter
- The LUT converterannotator
- The post-conversion processor functionalpublic void setPixScale(double pixScale)
pixScale
- The new pixScale
public void moveCursor(double x, double y)
cursorX
.x
- The new cursor Xy
- The new cursor Ypublic void destroy()
Copyright © 2015–2022 FLIMLib. All rights reserved.