Marcel,
Thanks. Java2D in Swing is awesome but any solution that requires the SWT-AWT bridge would be unacceptable from the perspective of us becoming part of it. The imglib2 stuff looks good however one of us will investigate
if we can bridge the imglib2 algorithms with IDataset, perhaps something like:
Img<FloatType> img = DatasetImgFactory.wrapImg(iDataset);
… // Do some ImageJ filters
iDataset = DatasetImgFactory.unwrapImg(img);
Or maybe the array will modify in-place, so the unwrap is not needed, we’ll see
J This kind of thing is done with other classes which wrap data in order to bridge gaps in the functionality for instance with
BoofCV.
Sincerely,
Matt
From: Austenfeld,
Marcel [mailto:maustenfeld@xxxxxxxxxxxxxx]
Sent: 26 May 2015 12:13
To: Science Industry Working Group; Gerring, Matt (DLSLtd,RAL,LSCI); science-iwg@xxxxxxxxxxx
Subject: AW: Re: [science-iwg] New viz project follow up
Hello Matt,
1.
This is indeed separated in ImageJ2.
2.
I had some painful experiences with that but I have a running Linux SWT_AWT implementation with the help of some changed Albireo sources (I started to investigate ImageJ2). However the
image data visualization from ImageJ1 don’t has to be a Swing panel it can be converted to a SWT image. To convert the whole ImageJ interface to SWT is possible but in SWT_AWT easier to maintain. I selected a hybrid with SWT tabs.
3.
In addition I tried the way: Swing->embedded in JavaFX->embedded in SWT which also worked as an easy SWT_AWT alternative. However I think this could be a little bit less effective than
the SWT_AWT bridge though I didn’t tested it much.
Best regards
Marcel
Hello Marcel,
Couple of problems we have had with ImageJ were:
1. Hard coded links between data and visualization which I think were solved in ImageJ2 but we have not tried it yet
2. The viewer is swing and using the AWT-SWT bridge on linux can be risky
Sincerely,
Matt
Hello,
I already wrote this to Jay to bring in my image library experience.
As an image lib I would highly recommend ImageJ (public domain) and (or) it extension ImageJ2:
http://imagej.nih.gov/ij/
which is the fastest Java imaging library around.
ImageJ2 (BSD):
https://github.com/imagej/imagej/
is a redesign of ImageJ with a more flexible data model using ImgLib2:
http://imglib2.net/
"ImageJ2 is a new version of
ImageJ
seeking to strengthen both the software and its community. Internally, it is a total redesign of ImageJ, but it is backwards compatible with ImageJ 1.x via a "legacy layer" and features a user interface closely modeled after the original.......ImageJ2 completely
isolates the image processing logic from the graphical user interface (UI), allowing ImageJ2 commands to be used in many contexts...."
Please note that ImageJ1 is still actively developed by it’s developer Wayne Rasband , too, and is a fantastic imaging library easy to use (with many examples only).
Using this lib with the Bio-Formats package you can open all kind of image formats:
http://www.openmicroscopy.org/site/products/bio-formats
Note that these libs are coming from microscopy imaging but are used in very different domains!
If you would like to open geospatial or GIS formats then I think you should use the GeoTools libs:
http://www.geotools.org/.
There is also a Java JNI lib available for the GDAL library which is the Swiss Army tool for geospatial raster or vector formats (integrated in almost all GIS tools):
http://trac.osgeo.org/gdal/wiki/GdalOgrInJava
Anothermulti pupose image library actively! developed is the Apache Commons Imaging lib:
https://commons.apache.org/proper/commons-imaging/
Some other links to free or proprietary libs can be found on the ImageJ website:
http://imagej.nih.gov/ij/links.html
However checkout the ImageJ libs. You will be surprised what you can do with it:
http://imagej.nih.gov/ij/docs/guide/146.html
Best regards
Marcel
--
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt
by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom