Ticket #2000 (closed defect: fixed)
Support nonlinear calibration functions
Reported by: | bdezonia | Owned by: | bdezonia |
---|---|---|---|
Priority: | major | Milestone: | imagej2-b8-analysis |
Component: | ImgLib2 | Version: | |
Severity: | serious | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #1923 |
Description
The recent changes made to incorporate img-metadata are a good start for supporting calibration. However currently it is limited to linear scale with origin 0,0. We need to expand the img-metadata hierarchy such that we can support a number of axis types that scale in a nonlinear fashion. The initial set of nonlinear axes to support could mirror IJ1's fitting functions as present in CurveFitter (and also its Calibration class).
Change History
comment:2 Changed 6 years ago by bdezonia
I have done this for Imglib on the nonlinear-goodies branch. It is ready to be merged. I also have the changes necessary in IJ2 on my local machine. I am testing them. I will merge both of these after ctrueden releases an IJ2 beta subrelease here in the next day or so.
comment:4 Changed 6 years ago by bdezonia
I have written an email to fiji-devel soliciting feedback. Hopefully it can be merged soon.
comment:5 Changed 6 years ago by curtis
- Status changed from new to closed
- Resolution set to fixed
Barry and I completed this work last fall.
CTR and BDZ discussed. The plan going forward is to define a subclass of CalibratedSpace called LinearSpace. It is based on LinearAxis's. A CalibratedAxis no longer will have calibration()/setCalibration(). It instead will support two methods that return doubles: getRawValue(double calibratedValue) and getCalibratedValue(double rawValue). So make these changes and propagate throughout Imglib and IJ2.