NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

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


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.

Change History

comment:1 Changed 2012-04-25T11:06:17-05:00 by bdezonia

Note that fractional scale support classes are now in AbstractImageDisplayViewer

comment:2 Changed 2012-05-14T10:43:51-05:00 by bdezonia

  • Blocking 1070 added

comment:3 Changed 2012-06-08T10:47:14-05:00 by bdezonia

  • Blocking 1170 added; 1070 removed

comment:4 Changed 2012-08-14T12:22:55-05:00 by bdezonia

  • Priority changed from major to minor
  • Severity changed from serious to minor
  • Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0