Ticket #1071 (new defect)
Opened 2012-03-14T14:17:29-05:00
Last modified 2012-08-14T12:22:55-05:00
Improve fractional scale computation
Reported by: | bdezonia | Owned by: | bdezonia |
---|---|---|---|
Priority: | minor | Milestone: | imagej-2.0.0 |
Component: | Core | Version: | |
Severity: | minor | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #1170 |
Description
Fractional scale computation is currently located in AbstractSwingImageDisplay. There is a ticket for moving it out of there to some reusable spot. But there is a method called lookForBestFraction() that should be improved.
The code only searches fractions with denominators of 32 or less. And it does a brute force search.
One should be able to have a fractional scale space that one could search logarithmically (by divide and conquer). So performance should be improved and the supported denominators could grow. Then we would also need to think of a max value we'd want to support in the denominator.
Note that fractional scale support classes are now in AbstractImageDisplayViewer