[ome-devel] changing pixel type

Wood, Christopher CJW at stowers.org
Thu Sep 12 16:09:18 BST 2013


Nevermind, I figured it out:

p5 = omero.model.PixelsTypeI(5, False)
p.setPixelsType(p5)
np = u.saveAndReturnObject(p)




On 9/12/13 9:47 AM, "Wood, Christopher" <CJW at stowers.org> wrote:

>Hi,
>
>Bioformats (omero and fiji) is reading some tif files pixels as Signed
>8-bit, with values from -127 to 127. Opening without bioformats, Fiji
>renders the image as expected (unsigned int 0-255).
>
>How do I change the pixel type in Omero from signed to unsigned? I have
>the image, pixels, and updateService, but I'm not sure what to change.
>
>Thanks,
>Chris
>
>_______________________________________________
>ome-devel mailing list
>ome-devel at lists.openmicroscopy.org.uk
>http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel



More information about the ome-devel mailing list