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 #1368 (closed defect: fixed)

Opened 2012-08-03T14:19:42-05:00

Last modified 2012-11-21T10:00:08-06:00

Cannot convert an RGB image into grayscale

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b4-plugins
Component: Core Version:
Severity: serious Keywords:
Cc: G.Landini@… Blocked By:
Blocking: #1345, #1570


Between beta 3 and beta 4 in the ij2 devel mailing list Gabriel Landini reported the following issue:

"I can't find a way of converting a colour image into greyscale in IJ2."

In IJ1 changing any RGB image's type to a gray type (8, 16, 32 bit) will convert the image to grayscale.

In IJ2 the "RGB" image is changed to a three channel gray image. The type changing classes should detect that the image is composite and convert the data to single channel grayscale.

Change History

comment:1 Changed 2012-08-03T14:20:04-05:00 by bdezonia

  • Cc G.Landini@… added

comment:2 Changed 2012-08-03T14:20:31-05:00 by bdezonia

  • Blocking 1245 added

comment:3 Changed 2012-08-03T19:40:26-05:00 by bdezonia

  • Blocking 1345 added

comment:4 Changed 2012-08-05T09:41:47-05:00 by curtis

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

Needs to target beta4 if blocking #1345.

comment:5 Changed 2012-08-15T11:33:51-05:00 by bdezonia

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

Fixed with commit bacb85ba861b3db326bb20faa5091862fe56c403

There are a couple minor issues remaining which will become new tickets

comment:6 Changed 2012-08-15T12:15:59-05:00 by bdezonia

After some futzing committed new version: 98c162b205fb54f78c3b0a149a231794edc8f7e0

comment:7 Changed 2012-11-21T10:00:08-06:00 by bdezonia

  • Blocking 1570 added; 1245 removed