I have forgot to say one thing:
you may probably consider also involving some format operation or imposed
ImageLayout to make sure that the intermediate results still can be
represented within the original data type and/or the output datatype allows
to properly represent your data as you need (in case you need float values
instead of rounded integers).
Cheers,
Daniele
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Daniele Romagnoli
Senior Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
On Tue, Oct 8, 2013 at 4:17 PM, Daniele Romagnoli <
daniele.romagn...@geo-solutions.it> wrote:
> Hi Dmitry,
> Right now I'm not sure about how you can efficiently do that...
> However, you may consider doing 2 Adds ops followed by a DivideByConstant.
>
> Result = ((A+B) + C) / 3.
> (since the Add op only takes 2 sources).
> You can take a look to the BinaryOpTest.testAdd test from the gt-coverage
> module to see how to do GeoTools operations.
>
> Hope this helps,
> Daniele
>
>
>
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
> information.
> ==
> Ing. Daniele Romagnoli
> Senior Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
>
> On Tue, Oct 8, 2013 at 9:47 AM, dementiev <dementie...@gmail.com> wrote:
>
>> Hi Daniele,
>>
>> Thank you for the answer.
>>
>> "Do you want that the first band of the final image is the average of the
>> first band of each image and so on" - yep. My images share the same
>> positions.
>>
>> I just want to know the most rational way of doing this kind of merge.
>>
>> Regards,
>> Dmitry.
>>
>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1560.x6.nabble.com/merge-rasters-tp5082029p5082307.html
>> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
>> from
>> the latest Intel processors and coprocessors. See abstracts and register >
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
>> _______________________________________________
>> GeoTools-GT2-Users mailing list
>> GeoTools-GT2-Users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
>
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users