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 #865 (closed task: fixed)

Opened 2011-11-08T12:17:20-06:00

Last modified 2013-05-08T12:13:46-05:00

Implement Histogram dialog functionality

Reported by: bdezonia Owned by: aivar
Priority: major Milestone: imagej2-b7-ndim-data
Component: Plugins Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1203, #1366

Description

In IJ1 the Histogram plugin opens an ImageWindow showing the histogram as an image and decorates it with some stats and UI buttons that interact with the histogram and histogram window. This functionality is not supported in IJ2. Make a pure IJ2 version of the histogram plugin that can do everything the IJ1 version can.

Change History

comment:1 Changed 2011-12-01T14:53:25-06:00 by gharris

  • Owner changed from bdezonia to gharris
  • Status changed from new to assigned

comment:2 Changed 2012-01-26T12:44:48-06:00 by curtis

  • Owner changed from gharris to curtis

comment:3 Changed 2012-02-26T22:29:32-06:00 by curtis

  • Blocking 1019 added

comment:4 Changed 2012-02-27T11:08:21-06:00 by curtis

See also #840.

comment:5 Changed 2012-02-29T15:58:01-06:00 by bdezonia

  • Milestone changed from imagej-2.0-beta2 to imagej-2.0-beta1

comment:6 Changed 2012-03-01T12:43:19-06:00 by bdezonia

  • Blocked By 1042 added

comment:6 Changed 2012-03-02T13:15:53-06:00 by curtis

Grant committed his HistogramPlot plugin prototype in 62d032d2df57d7786fd95de88a2a902ed01f90ef. This could be a good starting point for work on this ticket.

comment:7 Changed 2012-03-14T13:21:25-05:00 by bdezonia

Note that Grant's HistogramPlot plugin does not yet display histograms per channel. And it also totally avoids RGB style images.

comment:8 Changed 2012-03-26T10:57:30-05:00 by curtis

  • Milestone changed from imagej-2.0-beta1 to imagej-2.0-beta2

comment:9 Changed 2012-03-27T08:49:10-05:00 by curtis

  • Blocked By 1042 removed

(In #1042) This feature is not necessary for a Swing-specific histogram implementation.

comment:10 Changed 2012-05-14T12:00:19-05:00 by bdezonia

  • Blocking 1171 added; 1019 removed

comment:11 Changed 2012-05-14T15:34:15-05:00 by bdezonia

  • Blocked By 1042 added

comment:12 Changed 2012-07-02T10:53:47-05:00 by bdezonia

Note specifically the Live button that can interactively change the histogram info.

comment:13 Changed 2012-07-02T10:57:31-05:00 by bdezonia

  • Blocking 1203 added

comment:14 Changed 2012-07-03T13:38:12-05:00 by curtis

  • Milestone changed from imagej-2.0.0-beta3 to imagej-2.0.0-beta4

comment:15 Changed 2012-08-03T13:40:00-05:00 by curtis

  • Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0-beta5

comment:16 Changed 2012-08-03T13:59:16-05:00 by curtis

  • Blocking 1366 added; 1171 removed

comment:17 Changed 2012-09-07T12:49:04-05:00 by aivar

  • Owner changed from curtis to aivar

comment:18 Changed 2012-09-07T14:19:24-05:00 by aivar

  • Blocked By 1380 added

Added blocked by 1380. Rather than a decorated image I see the histogram more as a combination of a chart (which may be live) and some UI elements (which are non-modal).

(In SLIM Plugin the chart plus UI pattern is needed three times: histogram tool, decay graph, excitation graph. In all these cases the chart is at the top.)

comment:19 Changed 2012-10-10T13:51:27-05:00 by curtis

  • Milestone changed from imagej-2.0.0-beta6 to imagej-2.0.0-beta7

comment:20 Changed 2013-03-27T09:48:37-05:00 by dscho

  • Milestone changed from imagej2-b8-analysis to imagej2-b7-ndim-data

Fixing ImageJ-tickets...

comment:21 Changed 2013-04-02T15:05:01-05:00 by bdezonia

With merge commit e4dee7db384ea8c9c986082842154a8d188dbe0e I have updated the existing histogram plot plugin to display live buttons along with the chart. And I removed limitations that kept float and rgb images from working. Now there are multiple histograms that can be displayed (one at a time) such as each channel histogram and the composite histogram.

Note that this was all done in swing and should be made agnostic in the future.

It does not use Larry Lindsey's Histogram class. When the histogram branch code is merged it will be made to use that. For now it does its own internal calcs which needs to change going forward.

comment:22 Changed 2013-05-08T12:07:47-05:00 by bdezonia

With commit cb225aa30821ea473a845f894bc60ba40e394525 the plugin is now using the recently merged Histogram1d class from imglib algorithms.

comment:23 Changed 2013-05-08T12:12:44-05:00 by bdezonia

  • Blocked By 1042, 1380 removed

comment:24 Changed 2013-05-08T12:13:46-05:00 by bdezonia

  • Status changed from assigned to closed
  • Resolution set to fixed

There are a few remaining tasks needed to finish this task. But they are tickets in their own right (this ticket is too broad). Closing this ticket and opening new ones.