Ticket #1876 (closed defect: fixed)
Opened 2013-05-16T16:19:40-05:00
Last modified 2013-10-01T10:35:48-05:00
Translate IJ1 virtual stacks as CellImgs in IJ2
| Reported by: | bdezonia | Owned by: | bdezonia |
|---|---|---|---|
| Priority: | major | Milestone: | imagej2-b8-analysis |
| Component: | Legacy Compatibility | Version: | |
| Severity: | serious | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | #1459 |
Description
Right now any ImagePlus created by a legacy plugin will create a fully memory resident Img. The legacy layer should be smart enough to detect that the underlying data has a virtual stack and then hatch a cell img based Img.
Change History
comment:1 Changed 2013-05-16T16:20:31-05:00 by bdezonia
comment:3 Changed 2013-10-01T10:35:48-05:00 by bdezonia
- Status changed from new to closed
- Resolution set to fixed
Fixed with commit a3d1bad9167a88da04183ef1ae4fb7b5ad050a91.
Here is a mini test plugin
import ij.*;
import ij.process.*;
import ij.gui.*;
import java.awt.*;
import ij.plugin.*;
import ij.plugin.frame.*;
public class VstackTest implements PlugIn {
public void run(String arg) {
VirtualStack vstack = new VirtualStack(400,400,null,"/Users/bdezonia/Desktop/test images");
vstack.addSlice("1.tif");
vstack.addSlice("2.tif");
vstack.addSlice("3.tif");
ImagePlus imp = new ImagePlus("junko", vstack);
imp.show();
}
}
This ticket should be handled regardless of how we address #1873.