RangeLookup

3 views
Skip to first unread message

Michael Bedward

unread,
Jan 18, 2013, 9:28:58 AM1/18/13
to jai-...@googlegroups.com
Simone, Andrea and all,

I've committed work done so far on the RangeLookup classes to master.
There's more to do (especially more tests required) but it's ready to
try out.

Updated snapshots at the sonatype repo:
http://oss.sonatype.org/content/repositories/snapshots/

Usage is like this:

RangeLookupTable.Builder<Double, Integer> builder =
new RangeLookupTable.Builder<Double, Integer>();

builder.add(Range.create(null, false, 1.0, true), 1);
builder.add(Range.create(1.0, false, 2.0, true), 2);
...
RangeLookupTable<Double, Integer> table = builder.build();

ParameterBlockJAI pb = new ParameterBlockJAI("RangeLookup");
pb.setSource("source0", srcImage);
pb.setParameter("table", table);
pb.setParameter("default", -1); // omit or set to null for pass-through
RenderedImage resultImg = JAI.create("RangeLookup", pb);

Michael

Michael Bedward

unread,
Jan 21, 2013, 8:57:27 PM1/21/13
to jai-...@googlegroups.com
Hi Simone, Andrea and all,

I'm starting to add more docs and unit tests for RangeLookup to get it
in shape for a release. Let me know if you have any feedback on what
is there so far in terms of usability and correctness.

Michael

Simone Giannecchini

unread,
Jan 22, 2013, 4:32:57 AM1/22/13
to jai-...@googlegroups.com
I should be give it a go today.

I'll let you know what my thoughts are.

Regards,
Simone Giannecchini
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.
==

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
> --
> You received this message because you are subscribed to the Google Groups "jai-tools" group.
> To post to this group, send email to jai-...@googlegroups.com.
> To unsubscribe from this group, send email to jai-tools+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jai-tools?hl=en.
>

Michael Bedward

unread,
Jan 22, 2013, 4:48:17 AM1/22/13
to jai-...@googlegroups.com
On 22 January 2013 20:32, Simone Giannecchini
<simone.gi...@geo-solutions.it> wrote:
> I should be give it a go today.
>
> I'll let you know what my thoughts are.
>

That would be great. There's plenty of testing that needs doing :)

Michael
Reply all
Reply to author
Forward
0 new messages