public class FitProcessor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FitProcessor.FitType
The collection of all fitting algorithms
|
Constructor and Description |
---|
FitProcessor(Context context,
FitParams<FloatType> params) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
fitDataset() |
BiFunction<Float,float[],Float> |
getFitFunc() |
double |
getFitProgress() |
FitParams<FloatType> |
getIRFInfo() |
int |
getNParam() |
RandomAccessibleInterval<FloatType> |
getOrigTrans() |
FitParams<FloatType> |
getParams() |
RandomAccessibleInterval<FloatType> |
getPreviewImg(String option) |
List<String> |
getPreviewOptions() |
FitResults |
getResults() |
<S extends Service> |
getService(Class<S> c) |
void |
invalidateGlobalTrans()
Force recalculate
globalTrans when required. |
boolean |
isPickingIRF() |
void |
refreshControllers()
Refreshes all controllers.
|
void |
setAlgo(FitProcessor.FitType algo) |
void |
setBinning(int size) |
void |
setControllers(AbstractCtrl... controllers) |
void |
setIRF(FitParams<FloatType> newIRF) |
void |
setIsPickingIRF(boolean isPickingIRF) |
void |
setPreviewOptions(List<String> options) |
void |
setPreviewPos(int x,
int y,
boolean irf) |
void |
submitRunnable(Runnable runnable) |
static long[] |
swapInLtAxis(long[] coordinates,
int lifetimeAxis)
Permute the coordinates from ltDimension-last to ltDimension-at-ltAxis.
|
static long[] |
swapOutLtAxis(long[] coordinates,
int lifetimeAxis)
Permute the coordinates from ltDimension-at-ltAxis to ltDimension-last.
|
void |
updateFit() |
void |
updateFit(boolean preview) |
void |
updateIRFRange() |
public void setControllers(AbstractCtrl... controllers)
public void refreshControllers()
public FitResults getResults()
public RandomAccessibleInterval<FloatType> getOrigTrans()
public <S extends Service> S getService(Class<S> c)
S
- Service typec
- the service classpublic void updateFit()
public void updateFit(boolean preview)
public void setBinning(int size)
public void setAlgo(FitProcessor.FitType algo)
public void setIsPickingIRF(boolean isPickingIRF)
public boolean isPickingIRF()
public void updateIRFRange()
public BiFunction<Float,float[],Float> getFitFunc()
public int getNParam()
public void setPreviewPos(int x, int y, boolean irf)
public void fitDataset()
public double getFitProgress()
public void setPreviewOptions(List<String> options)
options
- the previewOptions to setpublic RandomAccessibleInterval<FloatType> getPreviewImg(String option)
public void invalidateGlobalTrans()
globalTrans
when required. Called upon e.g. intensity
threshold change.public static long[] swapInLtAxis(long[] coordinates, int lifetimeAxis)
coordinates
- the coordinates in ltDimension-last orderlifetimeAxis
- the index of the lifetime axispublic static long[] swapOutLtAxis(long[] coordinates, int lifetimeAxis)
coordinates
- the coordinates in ltDimension-at-ltAxis orderlifetimeAxis
- the index of the lifetime axispublic void submitRunnable(Runnable runnable)
public void destroy()
Copyright © 2015–2022 FLIMLib. All rights reserved.