[ome-users] Return Image Type via Bioformats / Fiji
Stephen Taylor
stephen.taylor at imm.ox.ac.uk
Mon Mar 11 08:59:48 GMT 2019
Hi David,
Thanks for your reply. I realised the easiest way is to use getDimensions(width, height, channels, slices, frames) and assume the image will be RGB if channels > 1.
Kind regards,
Steve
> -----Original Message-----
> From: ome-users <ome-users-bounces at lists.openmicroscopy.org.uk> On
> Behalf Of David Gault (Staff)
> Sent: 07 March 2019 14:54
> To: OME User Support List <ome-users at lists.openmicroscopy.org.uk>
> Subject: Re: [ome-users] Return Image Type via Bioformats / Fiji
>
> Hi Stephen,
>
> At the top of the 'Show Info' dialog you should have additional metadata
> which will have a value 'isRGB' which will either be true or false.
>
> With Thanks,
> David Gault
>
> > On 7 Mar 2019, at 14:37, Stephen Taylor <stephen.taylor at imm.ox.ac.uk>
> wrote:
> >
> > Hi,
> >
> > Is it possible to get the type of image using Bioformats via Fiji?
> >
> > For example I see you can get some info from
> >
> https://github.com/openmicroscopy/bioformats/blob/develop/components
> /b
> > io-formats-plugins/utils/macros/basicMetadata.txt
> >
> > But I want whether the image is RGB or not. So if I run("Show Info...") in Fiji
> I can get "Bits per pixel" from the output below. Is there is a quick method I
> can use to get this value?
> >
> > (Fiji Is Just) ImageJ 2.0.0-rc-69/1.52i; Java 1.8.0_172 [64-bit];
> > Windows 10 10.0; 128MB of 12098MB (1%)
> >
> > Title: nucleus_RGB.nii
> > Width: 20.9920 µm (512)
> > Height: 20.9920 µm (512)
> > Depth: 7.125 µm (57)
> > Size: 57MB
> > Resolution: 24.3902 pixels per µm
> > Voxel size: 0.0410x0.0410x0.125 µm^3
> > ID: -5
> > Bits per pixel: 32 (RGB)
> > Image: 26/57
> > No threshold
> > ScaleToFit: false
> > Uncalibrated
> > Path: C:\Users\cbrgsteve\Documents\Babel\Nii\nucleus_RGB.nii
> > Screen location: 1063,267 (1920x1200)
> > Coordinate origin: 0,0,0
> > No overlay
> > No selection
> >
> >
> > Kind regards and thanks,
> >
> > Steve
> > ----------------------------------
> > Co-Leader MRC WIMM Centre of Computational Biology, Head of Analysis,
> > Visualisation and Informatics, MRC Weatherall Institute of Molecular
> > Medicine, Oxford.
> > Tel: +44 (0)1865 (2)22640
> >
> > _______________________________________________
> > ome-users mailing list
> > ome-users at lists.openmicroscopy.org.uk
> > http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>
>
> The University of Dundee is a registered Scottish Charity, No: SC015096
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
More information about the ome-users
mailing list