We're Hiring!

Bioformats API

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Re: Bioformats API

Postby jmoore » Mon Oct 25, 2010 8:14 am

Ok. Thanks, Ivan. Try this, then:
Code: Select all
   rawPixelsStore = session.createRawPixelsStore()
   image = gateway.getImage( iid )
   pid = image.getPixels( 0 ).getId().getValue();
   pixels = session.getPixelsService().retrievePixDescription(pid);
   rawPixelsStore.setPixelsId( pid, True )
   plane = utils.downloadPlane( rawPixelsStore, pixels, 0, 0, 0 );

~Josh

P.S. I've added http://trac.openmicroscopy.org.uk/omero/ticket/3186 for loading the pixels automatically. Sorry for the trouble.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Bioformats API

Postby icaoberg » Mon Oct 25, 2010 10:16 am

the function works but it returns an empty object.
icaoberg
 
Posts: 145
Joined: Fri Sep 17, 2010 9:05 pm
Location: Pittsburgh, PA

Re: Bioformats API

Postby jmoore » Tue Oct 26, 2010 3:22 pm

Which function, Ivan?
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Bioformats API

Postby icaoberg » Tue Oct 26, 2010 3:27 pm

this morning it occurred me to restart omero and boom, it works. yesterday the previous procedure returned an empty numpy array. no errors, no complaints, just an empty array. but now it works. thanks josh. :lol:

ivan
Last edited by icaoberg on Tue Oct 26, 2010 3:33 pm, edited 1 time in total.
icaoberg
 
Posts: 145
Joined: Fri Sep 17, 2010 9:05 pm
Location: Pittsburgh, PA

Re: Bioformats API

Postby jmoore » Tue Oct 26, 2010 3:29 pm

Glad to hear it. If you're worried about the state of your server, you can attach your Blitz-0.log, and I'll try to figure out what was going on. But it could be any number of things like login, current group, etc. so I wouldn't be too concerned.

Cheers,
~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Bioformats API

Postby icaoberg » Tue Oct 26, 2010 3:32 pm

well not really, we have been tweaking omero and testing our code so we were expecting issues along the way.
icaoberg
 
Posts: 145
Joined: Fri Sep 17, 2010 9:05 pm
Location: Pittsburgh, PA

Previous

Return to Developer Discussion

Who is online

Users browsing this forum: No registered users and 1 guest