Ticket #1850 (closed defect: moved)
Opened 2013-05-06T11:21:22-05:00
Last modified 2013-06-04T12:33:52-05:00
GradientImage example has style issues
Reported by: | bdezonia | Owned by: | bdezonia |
---|---|---|---|
Priority: | minor | Milestone: | imagej2-b8-analysis |
Component: | Analysis Plugins | Version: | |
Severity: | serious | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #1519 |
Description
In the tutorial code we have a simple command example. It creates a GradientImage. However the code example uses bad style in that it is somewhat dependent upon the expectation that the created Img is backed by PlanarAccess. It uses setPlane(). This is to show users that they can ignore our generic types. But for the June 2013 beta release (beta 7) we are thinking that the Img creating/opening code will work in CellImgs depending upon the size of the Img. So we shouldn't encourage users to rely on setPlane(). Or we need to change its contract.