[ome-devel] Help with setPixelsID() and setImageID()

Roger Leigh rleigh at dundee.ac.uk
Wed Nov 16 16:19:42 GMT 2016


On 16/11/16 15:48, Roger Leigh wrote:
> On 15/11/16 18:30, Michael Ellis wrote:
>> I am still trying to make headway with BioFormats
>>
>> There are the following lines from the worked example at
>> http://www.openmicroscopy.org/site/support/bio-formats5.2/developers/export2.html
>>
>>
>> omexml.setImageID("Image:0", 0);
>> omexml.setPixelsID(“Pixels:0", 0);
>>
>> The documentation for setPixelsID() and setImageID() is not enlightening!
>>
>> //Set the ID property of Pixels.
>> //Set the ID property of Image.
>>
>> In both case parameters are documented as:
>>       id - ID to set.
>>       imageIndex - the Image index.
>>
>> Omitting either of these calls from my program results in a
>> loci.formats.FormatException: Image ID #0 is null (or Pixels ID #0 is
>> null). But I seem to be able to specify any String names and then it
>> works.
>>
>> Can someone explain these calls, or better still update the Javadoc
>> for these routines?
>
> Dear Michael,
>
> I'm afraid this is one of the hairier corners of the Bio-Formats API,
> and the documentation here is not ideal.  I'll try to provide some
> references and explanation of how it all fits together.

While it's written for C++, you might also find this page helpful:

http://www.openmicroscopy.org/site/support/ome-files-cpp/ome-files/manual/html/tutorial.html#metadata


Regards,
Roger

--
Dr Roger Leigh -- Open Microscopy Environment
Wellcome Trust Centre for Gene Regulation and Expression,
College of Life Sciences, University of Dundee, Dow Street,
Dundee DD1 5EH Scotland UK   Tel: (01382) 386364

The University of Dundee is a registered Scottish Charity, No: SC015096


More information about the ome-devel mailing list