Ticket #1146 (closed defect: fixed)
Opened 2012-04-29T14:03:03-05:00
Last modified 2012-05-18T12:21:13-05:00
Math plugins don't handle merged color data correctly
Reported by: | bdezonia | Owned by: | bdezonia |
---|---|---|---|
Priority: | major | Milestone: |
|
Component: | Plugins | Version: | |
Severity: | serious | Keywords: | |
Cc: | Blocked By: | ||
Blocking: |
Description
The math plugins modify values irregardless of channel. In IJ1 you can add a value to a color image and its intensity grows. In IJ2 each channel value is bumped and the displayed color changes. Further investigation into how math plugins should interact composite images is required.
For an example of the problem load clown and using Process > Math > Add to add 25. Compare results to IJ1.
It appears that IJ1 applies a math op to each channel of a color image. And it clamps out of bounds values.
With 24426a7270d9398cdc16b874bae1bb9d2c00c2ed I have mad sure all planes of color merged datasets are updated when necessary. And previews now restore all those channels too.
IJ2 still does not match IJ1 because Imglib does not clamp out of bounds data values. There is a separate ticket for that: #1129