Ticket #1935 (closed defect: fixed)
Opened 2013-07-03T10:55:26-05:00
Last modified 2013-07-03T14:40:24-05:00
Brightness/Contrast line display different than IJ1
Reported by: | bdezonia | Owned by: | bdezonia |
---|---|---|---|
Priority: | major | Milestone: | imagej2-b8-analysis |
Component: | Analysis Plugins | Version: | |
Severity: | serious | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #1100 |
Description
On the bc-histogram branch there is an implementation of the display of the slope/intercept trend line in the Brightness/Contrast command. It seems to work. However it does not display in the exact position that IJ1's does. Also contrast adjustment changes the trend line differently than IJ1. This may be that we have a different B&C algorithm. Or it may be that I've just implemented it incorrectly. Investigate and fix if necessary. (BTW note that IJ2 draws a slope line of 1 when default button is shown but note that histogram window is not square so we may need to stretch the space by the window aspect ratio).
On the branch I adopted IJ1's line drawing approach. The aspect ratio issue is corrected by this and I consider trend line drawing correct now.
However the B/C adjustment code moves the trend line differently than IJ1. This is most apparent by cranking either brightness or contrast near full on and then adjusting the opposite. Compare to IJ1 under similar circumstances.
This is likely related to comments by Gabriel Landini in other B&C tickets (see children of my parent #1100). This ticket is likely complete once bc-histogram is merged to master.