Skip to content

Instantly share code, notes, and snippets.

@sbesson
Created May 8, 2012 15:29
Show Gist options
  • Save sbesson/2636321 to your computer and use it in GitHub Desktop.
Save sbesson/2636321 to your computer and use it in GitHub Desktop.
Test emission wavelength after running Combine Images script
%% Create session
loadOmero
client = omero.client('localhost', 4064);
session = client.createSession('sebastien', 'omero');
% Create id list
ids = java.util.ArrayList();
ids.add(java.lang.Long(326));
ids.add(java.lang.Long(327));
% Create parameters and get images
proxy = session.getContainerService();
images = proxy.getImages('omero.model.Image', ids, omero.sys.ParametersI());
%% Read emission wavelength
svc=session.getPixelsService();
for i=1:2
disp(['Image ' num2str(i)]);
pixels=svc.retrievePixDescription(images.get(i-1).getPixels(0).getId.getValue);
channelD = pojos.ChannelData(i,pixels.copyChannels.get(0));
% Read excitation wavelength
disp(channelD.getEmissionWavelength)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment