public void doRGBProjection() { doRGBProjection(imp.getStack()); }
public void doRGBProjection() { doRGBProjection(imp.getStack()); }
public void doRGBProjection(boolean handleOverlay) { doRGBProjection(imp.getStack()); Overlay overlay = imp.getOverlay(); if (handleOverlay && overlay!=null) projImage.setOverlay(projectRGBHyperStackRois(overlay)); }
public void doRGBProjection(boolean handleOverlay) { doRGBProjection(imp.getStack()); Overlay overlay = imp.getOverlay(); if (handleOverlay && overlay!=null) projImage.setOverlay(projectRGBHyperStackRois(overlay)); }
private void doHSRGBProjection(ImagePlus rgbImp) { ImageStack stack = rgbImp.getStack(); ImageStack stack2 = new ImageStack(stack.getWidth(), stack.getHeight()); for (int i=startSlice; i<=stopSlice; i++) stack2.addSlice(null, stack.getProcessor(i)); startSlice = 1; stopSlice = stack2.getSize(); doRGBProjection(stack2); }
private void doHSRGBProjection(ImagePlus rgbImp) { ImageStack stack = rgbImp.getStack(); ImageStack stack2 = new ImageStack(stack.getWidth(), stack.getHeight()); for (int i=startSlice; i<=stopSlice; i++) stack2.addSlice(null, stack.getProcessor(i)); startSlice = 1; stopSlice = stack2.getSize(); doRGBProjection(stack2); }
/** Performs actual projection using specified method. If handleOverlay, adds stack overlay elements from startSlice to stopSlice to projection. */ public void doProjection(boolean handleOverlay) { if (isHyperstack) doHyperStackProjection(allTimeFrames); else if (imp.getType()==ImagePlus.COLOR_RGB) doRGBProjection(handleOverlay); else { doProjection(); Overlay overlay = imp.getOverlay(); if (handleOverlay && overlay!=null) projImage.setOverlay(projectStackRois(overlay)); } if (projImage!=null) projImage.setCalibration(imp.getCalibration()); }
/** Performs actual projection using specified method. If handleOverlay, adds stack overlay elements from startSlice to stopSlice to projection. */ public void doProjection(boolean handleOverlay) { if (isHyperstack) doHyperStackProjection(allTimeFrames); else if (imp.getType()==ImagePlus.COLOR_RGB) doRGBProjection(handleOverlay); else { doProjection(); Overlay overlay = imp.getOverlay(); if (handleOverlay && overlay!=null) projImage.setOverlay(projectStackRois(overlay)); } if (projImage!=null) projImage.setCalibration(imp.getCalibration()); }
if (iI.imp.getType() == ImagePlus.COLOR_RGB || iI.imp.getType() == ImagePlus.COLOR_256) zp.doRGBProjection(); iI.maxIntensity = zp.getProjection(); iI.maxIntensity.setProcessor(iI.maxIntensity.getTitle(), iI.maxIntensity.getProcessor().convertToFloat());
private ImagePlus mergeUsingRGBProjection(ImagePlus[] images, boolean createComposite) { ImageStack stack = new ImageStack(imp.getWidth(),imp.getHeight()); for (int i=0; i<images.length; i++) { if (images[i]!=null) stack.addSlice(images[i].getProcessor()); } ImagePlus imp2 = new ImagePlus("temp", stack); ZProjector zp = new ZProjector(imp2); zp.setMethod(ZProjector.MAX_METHOD); zp.doRGBProjection(); imp2 = zp.getProjection(); if (createComposite) { imp2 = CompositeConverter.makeComposite(imp2); imp2.setTitle("Composite"); } else imp2.setTitle("RGB"); return imp2; }
private ImagePlus mergeUsingRGBProjection(ImagePlus[] images, boolean createComposite) { ImageStack stack = new ImageStack(imp.getWidth(),imp.getHeight()); for (int i=0; i<images.length; i++) { if (images[i]!=null) stack.addSlice(images[i].getProcessor()); } ImagePlus imp2 = new ImagePlus("temp", stack); ZProjector zp = new ZProjector(imp2); zp.setMethod(ZProjector.MAX_METHOD); zp.doRGBProjection(); imp2 = zp.getProjection(); if (createComposite) { imp2 = CompositeConverter.makeComposite(imp2); imp2.setTitle("Composite"); } else imp2.setTitle("RGB"); return imp2; }
return; if (imp.getBitDepth()==24) { doRGBProjection(); return;
return; if (imp.getBitDepth()==24) { doRGBProjection(); return;