@Override public ImageProcessor getProjection() { FloatProcessor[] fps = new FloatProcessor[ips.size()]; ips.toArray(fps); return focus(fps, RADIUS).convertToShort(true); }
/** Calculates a 16-bit grayscale Euclidean Distance Map for a binary 8-bit image. * Each foreground (nonzero) pixel in the binary image is assigned a value equal to * its distance from the nearest background (zero) pixel, multiplied by EDM.ONE. * For compatibility with previous versions of ImageJ only. */ public ShortProcessor make16bitEDM (ImageProcessor ip) { FloatProcessor floatEdm = makeFloatEDM(ip, 0, false); floatEdm.setMinAndMax(0, 65535./ONE); return (ShortProcessor)floatEdm.convertToShort(true); }
/** Calculates a 16-bit grayscale Euclidean Distance Map for a binary 8-bit image. * Each foreground (nonzero) pixel in the binary image is assigned a value equal to * its distance from the nearest background (zero) pixel, multiplied by EDM.ONE. * For compatibility with previous versions of ImageJ only. */ public ShortProcessor make16bitEDM (ImageProcessor ip) { FloatProcessor floatEdm = makeFloatEDM(ip, 0, false); floatEdm.setMinAndMax(0, 65535./ONE); return (ShortProcessor)floatEdm.convertToShort(true); }
/** Calculates a 16-bit grayscale Euclidean Distance Map for a binary 8-bit image. * Each foreground (nonzero) pixel in the binary image is assigned a value equal to * its distance from the nearest background (zero) pixel, multiplied by ImageJ_EDM.ONE. * For compatibility with previous versions of ImageJ only. */ public ShortProcessor make16bitEDM (ImageProcessor ip) { FloatProcessor floatEdm = makeFloatEDM(ip, 0, false); floatEdm.setMinAndMax(0, 65535./ONE); return (ShortProcessor)floatEdm.convertToShort(true); }
ip2 = fp.convertToShort(true); ip.setPixels(ip2.getPixels());
ip2 = fp.convertToShort(true); ip.setPixels(ip2.getPixels());
frame = ImageMath.add((float)CameraSetupPlugIn.getOffset(), frame); return (ShortProcessor)frame.convertToShort(false);
ipToDisplay = fpg.convertToByte( false ); else if( auxSourceImp.getProcessor() instanceof ShortProcessor ) ipToDisplay = fpg.convertToShort( false ); else ipToDisplay = fpg;
case SHORT: floatEdm.setMinAndMax(0., 65535.); outIp = floatEdm.convertToShort(true); break; case BYTE:
case SHORT: floatEdm.setMinAndMax(0., 65535.); outIp = floatEdm.convertToShort(true); break; case BYTE:
case SHORT: floatEdm.setMinAndMax(0., 65535.); outIp = floatEdm.convertToShort(true); break; case BYTE: