/** * @deprecated * Short images are always unsigned. */ public static ImagePlus createUnsignedShortImage(String title, int width, int height, int slices, int options) { return createShortImage(title, width, height, slices, options); }
/** * @deprecated * Short images are always unsigned. */ public static ImagePlus createUnsignedShortImage(String title, int width, int height, int slices, int options) { return createShortImage(title, width, height, slices, options); }
public static ImagePlus createImage(String title, int width, int height, int nSlices, int bitDepth, int options) { ImagePlus imp = null; switch (bitDepth) { case 8: imp = createByteImage(title, width, height, nSlices, options); break; case 16: imp = createShortImage(title, width, height, nSlices, options); break; case 32: imp = createFloatImage(title, width, height, nSlices, options); break; case 24: imp = createRGBImage(title, width, height, nSlices, options); break; default: throw new IllegalArgumentException("Invalid bitDepth: "+bitDepth); } return imp; }
public static ImagePlus createImage(String title, int width, int height, int nSlices, int bitDepth, int options) { ImagePlus imp = null; switch (bitDepth) { case 8: imp = createByteImage(title, width, height, nSlices, options); break; case 16: imp = createShortImage(title, width, height, nSlices, options); break; case 32: imp = createFloatImage(title, width, height, nSlices, options); break; case 24: imp = createRGBImage(title, width, height, nSlices, options); break; default: throw new IllegalArgumentException("Invalid bitDepth: "+bitDepth); } return imp; }
ImagePlus impLine = NewImage.createShortImage("imLine",sizeTemp,sizeTemp,1,NewImage.FILL_BLACK); ImageProcessor ipLine = impLine.getProcessor(); double rotationAngle = 180/nAngles; ImagePlus impLineRotated = NewImage.createShortImage("imLineRot",sizeTemp, sizeTemp ,1,NewImage.FILL_BLACK); ImageProcessor ipLineRotated = impLineRotated.getProcessor();
ImagePlus impLine = NewImage.createShortImage("imLine",sizeTemp,sizeTemp,1,NewImage.FILL_BLACK); ImageProcessor ipLine = impLine.getProcessor(); double rotationAngle = 180/nAngles; ImagePlus impLineRotated = NewImage.createShortImage("imLineRot",sizeTemp, sizeTemp ,1,NewImage.FILL_BLACK); ImageProcessor ipLineRotated = impLineRotated.getProcessor();
ImagePlus impLine = NewImage.createShortImage("imLine",sizeTemp,sizeTemp,1,NewImage.FILL_BLACK); ImageProcessor ipLine = impLine.getProcessor(); double rotationAngle = 180/nAngles; ImagePlus impLineRotated = NewImage.createShortImage("imLineRot",sizeTemp, sizeTemp ,1,NewImage.FILL_BLACK); ImageProcessor ipLineRotated = impLineRotated.getProcessor();
store_ip=store.getProcessor(); } else {store=NewImage.createShortImage("Storage",50,50,1,NewImage.FILL_BLACK); store_ip=store.getProcessor(); store.show();