Ticket #1876 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

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 6 years ago by bdezonia

This ticket should be handled regardless of how we address #1873.

comment:2 Changed 6 years ago by bdezonia

  • Blocking 1459 added

comment:3 Changed 5 years ago 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();
	}

}
Note: See TracTickets for help on using tickets.