Esempio n. 1
0
 /**
  * Creates a color {@link ImagePlus} from a color {@link ImageDisplay}. Expects input expects
  * input ImageDisplay to have isRgbMerged() set with 3 channels of unsigned byte data.
  */
 @Override
 public ImagePlus createLegacyImage(final ImageDisplay display) {
   final ImageDisplayService imageDisplayService = context.getService(ImageDisplayService.class);
   final Dataset ds = imageDisplayService.getActiveDataset(display);
   final ImagePlus imp = makeColorImagePlus(ds);
   pixelHarmonizer.updateLegacyImage(ds, imp);
   metadataHarmonizer.updateLegacyImage(ds, imp);
   positionHarmonizer.updateLegacyImage(display, imp);
   return imp;
 }