Import with python problems
Posted: Thu Jun 14, 2018 8:24 am
Hallo everybody,
I will import a multiframe single channel uint16 *.ome.tif file with python after an image processing step on the server.
But after the import the histogram of the image seems to be stretched.
Import the same file with the OMERO.importer everything is fine...
Here is what I do in python:
Does somebody has any idea ?
Best Regards
Susanne
I will import a multiframe single channel uint16 *.ome.tif file with python after an image processing step on the server.
But after the import the histogram of the image seems to be stretched.
Import the same file with the OMERO.importer everything is fine...
Here is what I do in python:
- Code: Select all
...
def plane_generator():
img = Image.open(imagePath)
for frame in ImageSequence.Iterator(img):
frame.load()
numpyPlane = numpy.array(frame)
yield numpyPlane
plane_gen = plane_generator()
newImg = conn.createImageFromNumpySeq(
plane_gen, imageName, sizeZ=21,sizeC=1,sizeT=21, description='Test',dataset=imgSrc.getParent())
...
Does somebody has any idea ?
Best Regards
Susanne