[ome-devel] Channel data from Matlab

Dan Withey DWithey at csir.co.za
Fri Feb 3 16:43:20 GMT 2012


Hello,
 
Is there a way to access image channel data using Matlab? When attempting this, the following error is reported:
 
Error using omero.model.PixelsI/getChannel
Java exception occurred:
omero.UnloadedCollectionException: Error updating collection:channelsSeq
Collection is currently null. This can be seen
by testing "channelsSeqLoaded". This implies
that this collection was unloaded. Please refresh this object
in order to update this collection.
 
Here's the code:
 
client = loadOmero(url); 
 
session = client.createSession(user, password);
gateway = session.createGateway();
timer = omeroKeepAlive(client); % Creates and starts a 60 second timer.
userId = session.getAdminService().getEventContext().userId;
 
ContainerProxy = session.getContainerService();
 
params = omero.sys.ParametersI();
params.leaves();%indicate to load the images
params.exp(omero.rtypes.rlong(userId));
 
projectsList = ContainerProxy.loadContainerHierarchy(char('omero.model.Project'), [], params);
p = projectsList.get(0);
 
datasetsList = p.linkedDatasetList;
d = datasetsList.get(0);
 
imageList = d.linkedImageList;
image = imageList.get(0);
 
pixelsList = image.copyPixels();
pixels = pixelsList.get(0);
 
pixels.getChannel(0);
 
Thanks!
Dan

-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20120203/56314d93/attachment.html>


More information about the ome-devel mailing list