The easiest way to do is probably with some scripting language of your
choice where you need to write the "Data" section of the AmiraMesh file
in ASCII as described here:
http://www.amiravis.com/usersguide31/amiramesh/HxFileFormat_AmiraMesh.htmlPersonally, I'd save the data from ImageJ as a TIFF and then import it
into MATLAB and write the AmiraMesh file from there. But then I don't
know JAVA or scripting in ImageJ.
Another way is with libamiramesh:
http://www.amiravis.com/resources/Ext411-01-libamiramesh/index.htmlwhich is a C++ library that allows you to write AmiraMesh files. Using
compiled code may be more trouble than it is worth for this small task.
-Matt