|
Replies:
10
-
Last Post:
Apr 14, 2009 12:05 AM
by: cafeanimal
|
Threads:
[
Previous
|
Next
]
|
|
|
|
|
|
new jai-related, open source project
Posted:
Feb 28, 2009 5:57 PM
|
|
|
I'm pleased to announce a new open source project, jai-tools, to provide new operators and other extensions for JAI developers.
The project site is: http://code.google.com/p/jai-tools/
The first part of the project to be developed is Jiffle: a simple scripting language for image analysis and creation. You can read about Jiffle here...
http://code.google.com/p/jai-tools/wiki/Jiffle
... as well as browse or download the code. It is very much alpha software at this stage but I'd be grateful for any comments, suggestion or general feedback from JAI users.
regards Michael
Message was edited by: cafeanimal
|
|
|
|
|
|
|
Re: new jai-related, open source project
Posted:
Mar 11, 2009 10:49 AM
in response to: cafeanimal
|
|
|
It looks very nice, but why are you not using the current JavaScript engine in java with a custom context containing all your vars / functions?
|
|
|
|
|
|
|
|
Re: new jai-related, open source project
Posted:
Mar 11, 2009 4:28 PM
in response to: deadlypredator
|
|
|
Thanks for the comment.
Re the JavaScript engine - I thought that was java 6 only (?) I need to support java 5 as well. Also, developing the Jiffle language with ANTLR leaves open the possibility of someone retargeting the language to C, C# etc for other applications later.
cheers Michael
|
|
|
|
|
|
|
|
Re: new jai-related, open source project
Posted:
Mar 11, 2009 8:34 PM
in response to: cafeanimal
|
|
|
I forgot to say the most important bit in my previous message The scripting language in jaitools is modelled closely on a language called mapcalc used for geo-spatial analysis and map creation in the GRASS GIS program. Essentially, map algebra in GIS parlance is much the same as image analysis in JAI parlance.
One of the aims of Jiffle, the new language, was to be able to run many existing GRASS scripts, so we've aimed to make Jiffle a reasonably complete superset of the mapcalc language.
I've no idea how developing a language with ANTLR / Java compares, in terms of time and effort, to developing a JSR-223 compliant scripting engine. But I knew how to do it with ANTLR 
But just getting back to the more general topic of extending and working with JAI, it surprised me there wasn't already something like a scripting language to work with JAI. It seemed like such an obviously useful thing. If anyone knows of existing projects that my googling has missed I'd be keen to hear.
At the moment Jiffle is somewhere between proof-of-concept and useful tool. I hope to make the back-end much smarter, e.g. recognizing instructions that can be carried out using JAI operators rather always using iterator-based routines.
cheers Michael
|
|
|
|
|
|
|
|
Re: [JAI] Re: new jai-related, open source project
Posted:
Mar 12, 2009 3:06 AM
in response to: cafeanimal
|
|
|
jai-interest@javadesktop.org wrote: > I forgot to say the most important bit in my previous message The scripting language in jaitools is modelled closely on a language called mapcalc used for geo-spatial analysis and map creation in the GRASS GIS program. Essentially, map algebra in GIS parlance is much the same as image analysis in JAI parlance. > > One of the aims of Jiffle, the new language, was to be able to run many existing GRASS scripts, so we've aimed to make Jiffle a reasonably complete superset of the mapcalc language. > > I've no idea how developing a language with ANTLR / Java compares, in terms of time and effort, to developing a JSR-223 compliant scripting engine. But I knew how to do it with ANTLR :- > > But just getting back to the more general topic of extending and working with JAI, it surprised me there wasn't already something like a scripting language to work with JAI. It seemed like such an obviously useful thing. If anyone knows of existing projects that my googling has missed I'd be keen to hear. > If you are talking about a specific scripting language, I don't know any. Generically talking, any scripting language implemented through JSR-223 can be used with JAI, as well as with any Java runtime library. That means that JavaScript, JRuby, Groovy should be usable with JAI. I don't know how this can be useful, as I think you're meaning a scripting language specifically built for image manipulation and maybe specific optimizations as you mention in the paragraph below.
> At the moment Jiffle is somewhere between proof-of-concept and useful tool. I hope to make the back-end much smarter, e.g. recognizing instructions that can be carried out using JAI operators rather always using iterator-based routines. > > cheers > Michael > [Message sent by forum member 'cafeanimal' (cafeanimal)] > > http://forums.java.net/jive/thread.jspa?messageID=336534 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net > For additional commands, e-mail: interest-help@jai.dev.java.net > > > >
-- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - "We make Java work. Everywhere." weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog Fabrizio.Giudici@tidalwave.it - mobile: +39 348.150.6941
--------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net For additional commands, e-mail: interest-help@jai.dev.java.net
|
|
|
|
|
|
|
|
Re: [JAI] Re: new jai-related, open source project
Posted:
Mar 12, 2009 3:44 AM
in response to: Fabrizio Giudici
|
|
|
> I don't know how this can be useful, as I think you're > meaning a scripting language specifically built for image manipulation > and maybe specific optimizations as you mention in the paragraph below.
Yes - that's just what I meant. A language that's designed to express some common imaging tasks concisely and that frees a user of the need to write so much boiler-plate code.
> AFAIK it is possible to have the scripting engine working with Java 5 by > just adding the required JARs to the classpath.
Ah, that's interesting to know.
Thanks Fabrizio !
Michael
|
|
|
|
|
|
|
|
|
|
Re: [JAI] Re: new jai-related, open source project
Posted:
Mar 29, 2009 8:26 PM
in response to: cafeanimal
|
|
|
Hello,
A new operator, RangeLookup, is now available to use / examine. It maps ranges of source image values individual destination values and can handle float and double data on the source image side.
The operator is functional and has a useful coverage of unit tests, but it's still pre-release status and, in particular, doesn't yet support band-specific lookups.
http://code.google.com/p/jai-tools/wiki/RangeLookup
Any comments, gushing praise, bug-reports etc. much appreciated.
Michael
|
|
|
|
|
|
|
|
Re: [JAI] Re: new jai-related, open source project
Posted:
Apr 7, 2009 2:29 AM
in response to: cafeanimal
|
|
|
Hello,
Another jai-tools image operator has made it to the "worth looking at" stage...
KernelStats calculates a range of summary statistics for values in the neighbourhood of source image pixels. The neighbourhood is defined with a KernelJAI object.
Presently, KernelStats can calculate mean, median, min, max, range, sample standard deviation and sample variance.
More info here: http://code.google.com/p/jai-tools/wiki/KernelStats
Michael
|
|
|
|
|
|
|
|
Re: [JAI] Re: new jai-related, open source project
Posted:
Mar 12, 2009 2:58 AM
in response to: cafeanimal
|
|
|
jai-interest@javadesktop.org wrote: > Thanks for the comment. > > Re the JavaScript engine - I thought that was java 6 only (?) I need to support java 5 as well. Also, developing the Jiffle language with ANTLR leaves open the possibility of someone retargeting the language to C, C# etc for other applications later. > AFAIK it is possible to have the scripting engine working with Java 5 by just adding the required JARs to the classpath.
-- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - "We make Java work. Everywhere." weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog Fabrizio.Giudici@tidalwave.it - mobile: +39 348.150.6941
--------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net For additional commands, e-mail: interest-help@jai.dev.java.net
|
|
|
|
|
|
|
|
Re: new jai-related, open source project
Posted:
Apr 14, 2009 12:05 AM
in response to: cafeanimal
|
|
|
Hello everyone,
Another operator has been added to the jai-tools collection: ZonalStats. It calculates a range of summary statistics for a data image within zones (regions) defined by a separate zone image.
http://code.google.com/p/jai-tools/wiki/ZonalStats
It's pre-release code so the usual cautions apply. Any comments, suggestions, bug reports etc. will be gratefully received.
cheers Michael
JAI-tools mailing list: http://groups.google.com/group/jai-tools
|
|
|
|
|