Skip to content, Skip to search


TrakEM2 Scripting

12 bytes added, 16:16, 3 February 2011
Create a snapshot in 8-bit, 16-bit, 32-bit or RGB
From the right-click menu, one may choose "Export - Make flat image", which opens a dialog that lets one choose between 8-bit and RGB. These snapshots are created from the mipmaps, which are all 8-bit or RGB images.
On occasions, one wants to create a flattened montage of images in their original bit depth, such as 16-bit or 32-bit. For this purpose, the static function [, ini%20ini.trakem2.display.Layer, java%20java.awt.Rectangle, double%20double, java%20java.util.Collection, java%20java.awt.Color, boolean%20boolean) Patch.makeFlatImage] exists.
Here is an example that, for a given Layer and set of selected Patch instances (image tiles) in it, it makes a 16-bit flat montage image and returns it as an ImageJ's ImageProcessor, at 50% the original scale.
Emailconfirmed, uploaders