openmicroscopy/openmicroscopy — pull request #1461 by will-moore (2013-09-09 14:15:40+00:00)
Title: Create image from old 11426

The Blitz Gateway conn.createImageFromNumpySeq() now takes an optional 'sourceImageId' parameter and 'channelList' to allow new image to be created using metadata from existing image. This uses the pixelsService.copyAndResizeImage().

The Channel_Offsets and Images_From_ROIs util scripts have been updated to use these parameters, so that new images inherit channel and other metadata from their original images. I'm just about to submit the scripts PR - both PRs can be tested together:

To test:
- Run Scripts > Util Scripts > Channel Offsets, choosing 1 channel or multiple channels.
- Check that the new image gets the correct metadata etc from the correct channels of the source image.
- Run Scripts > Util Scripts > Images From ROIs on an image that has at least one Rectangle shape.
- Check the new image has the same channels and channel metadata as the original.

cc @chris-allan