Ticket #1071 (new defect)

Opened 7 years ago

Last modified 7 years ago

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.

Change History

comment:1 Changed 7 years ago by bdezonia

Note that fractional scale support classes are now in AbstractImageDisplayViewer

comment:2 Changed 7 years ago by bdezonia

  • Blocking 1070 added

comment:3 Changed 7 years ago by bdezonia

  • Blocking 1170 added; 1070 removed

comment:4 Changed 7 years ago 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
Note: See TracTickets for help on using tickets.