[ome-devel] Download an original file with a remote access

jean-marie j.burel at dundee.ac.uk
Mon Aug 3 16:47:58 BST 2009


Hi Olivier

What do you mean by "classical image object" , a buffered Image?
if this is the case, you can use the thumbnail service to retrieve an  
array of byte of a given 2D-plane
and then create a buffered image
pseudo code:

ThumbnailStorePrx service
if (!(service.setPixelsId(pixelsID))) {
  service.resetDefaults();
  service.setPixelsId(pixelsID);
}
byte[] values = service.getThumbnail(omero.rtypes.rint(sizeX),  
omero.rtypes.rint(sizeY));

ByteArrayInputStream stream = new ByteArrayInputStream(values);
return ImageIO.read(stream);

Or you can use the rendering engine if you want uncompressed (or  
compressed) images.

We also have a "first version" of an omero ImageJ plugin to view  
images stored in an OMERO server in imageJ (http:// 
www.openmicroscopy.org/site/support/omero4/downloads) . This version
uses the Image5D plugin, a newer version of the plugin planned later  
in the year will have most of the options offered by the loci-plugin.


If you need to analyze your image, you can retrieve the raw data  
using the RawPixelsStore service.

Hope it helps

Jmarie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20090803/0a80cf13/attachment.htm 


More information about the ome-devel mailing list