T
- The source images value typepublic class Histogram2D<T extends RealType<T>> extends Algorithm<T>
Modifier and Type | Class and Description |
---|---|
static class |
Histogram2D.DrawingFlags |
Modifier and Type | Field and Description |
---|---|
protected String |
ch1Label |
protected String |
ch2Label |
protected boolean |
swapChannels |
protected String |
title |
protected int |
xBins |
protected int |
yBins |
Constructor and Description |
---|
Histogram2D() |
Histogram2D(String title) |
Histogram2D(String title,
boolean swapChannels) |
Histogram2D(String title,
boolean swapChannels,
EnumSet<Histogram2D.DrawingFlags> drawingSettings) |
Modifier and Type | Method and Description |
---|---|
void |
execute(DataContainer<T> container)
Executes the previously initialized
Algorithm . |
protected void |
generateHistogramData(DataContainer<T> container) |
String |
getData()
A table of x-values, y-values and the counts is generated and
returned as a string.
|
EnumSet<Histogram2D.DrawingFlags> |
getDrawingSettings() |
protected RandomAccessibleInterval<T> |
getImageCh1(DataContainer<T> container)
Gets the image of channel one.
|
protected RandomAccessibleInterval<T> |
getImageCh2(DataContainer<T> container)
Gets the image of channel two.
|
protected String |
getLabelCh1()
Gets the label of channel one.
|
protected String |
getLabelCh2()
Gets the label of channel two.
|
protected double |
getMaxCh1(DataContainer<T> container)
Gets the maximum of channel one.
|
protected double |
getMaxCh2(DataContainer<T> container)
Gets the maximum of channel two.
|
protected double |
getMinCh1(DataContainer<T> container)
Gets the minimum of channel one.
|
protected double |
getMinCh2(DataContainer<T> container)
Gets the minimum of channel two.
|
RandomAccessibleInterval<LongType> |
getPlotImage() |
String |
getTitle() |
double |
getXBinWidth() |
protected double |
getXBinWidth(DataContainer<T> container)
Calculates the bin width of one bin in x/ch1 direction.
|
String |
getXLabel() |
double |
getXMax() |
protected double |
getXMax(DataContainer<T> container) |
double |
getXMin() |
protected double |
getXMin(DataContainer<T> container) |
protected int |
getXValue(double ch1Val,
double ch1BinWidth,
double ch2Val,
double ch2BinWidth)
Calculates the locations x value.
|
double |
getYBinWidth() |
protected double |
getYBinWidth(DataContainer<T> container)
Calculates the bin width of one bin in y/ch2 direction.
|
String |
getYLabel() |
double |
getYMax() |
protected double |
getYMax(DataContainer<T> container) |
double |
getYMin() |
protected double |
getYMin(DataContainer<T> container) |
protected int |
getYValue(double ch1Val,
double ch1BinWidth,
double ch2Val,
double ch2BinWidth)
Calculates the locations y value.
|
void |
processResults(ResultHandler<T> handler)
A method to give the algorithm the opportunity to let
its results being processed by the passed handler.
|
addWarning, getName, getWarnings
protected int xBins
protected int yBins
protected String title
protected boolean swapChannels
protected String ch1Label
protected String ch2Label
public Histogram2D()
public Histogram2D(String title)
public Histogram2D(String title, boolean swapChannels)
public Histogram2D(String title, boolean swapChannels, EnumSet<Histogram2D.DrawingFlags> drawingSettings)
protected double getMinCh1(DataContainer<T> container)
protected double getMinCh2(DataContainer<T> container)
protected double getMaxCh1(DataContainer<T> container)
protected double getMaxCh2(DataContainer<T> container)
protected RandomAccessibleInterval<T> getImageCh1(DataContainer<T> container)
protected RandomAccessibleInterval<T> getImageCh2(DataContainer<T> container)
protected String getLabelCh1()
protected String getLabelCh2()
public void execute(DataContainer<T> container) throws MissingPreconditionException
Algorithm
Algorithm
.protected void generateHistogramData(DataContainer<T> container)
public String getData()
public void processResults(ResultHandler<T> handler)
Algorithm
processResults
in class Algorithm<T extends RealType<T>>
handler
- The ResultHandler to process the results.protected double getXBinWidth(DataContainer<T> container)
container
- The container with images to work onprotected double getYBinWidth(DataContainer<T> container)
container
- The container with images to work onprotected int getXValue(double ch1Val, double ch1BinWidth, double ch2Val, double ch2BinWidth)
ch1Val
- The intensity of channel onech1BinWidth
- The bin width for channel oneprotected int getYValue(double ch1Val, double ch1BinWidth, double ch2Val, double ch2BinWidth)
ch2Val
- The intensity of channel onech2BinWidth
- The bin width for channel oneprotected double getXMin(DataContainer<T> container)
protected double getXMax(DataContainer<T> container)
protected double getYMin(DataContainer<T> container)
protected double getYMax(DataContainer<T> container)
public RandomAccessibleInterval<LongType> getPlotImage()
public double getXBinWidth()
public double getYBinWidth()
public String getXLabel()
public String getYLabel()
public double getXMin()
public double getXMax()
public double getYMin()
public double getYMax()
public String getTitle()
public EnumSet<Histogram2D.DrawingFlags> getDrawingSettings()
Copyright © 2015–2021 Fiji. All rights reserved.