Hi Agustin,

The BandMath only produces 1 output band. So you would have to use 7 formulas for each output channel, and concatenate bands.

On the other hand, BandMathX should be able to do the job. You can set the 7x7 kernel in a constant file (incontext)

Guillaume

On 06/22/2016 10:03 AM, Agustin Lobo wrote:
Can I apply a matrix of factors to a multi-spectral image using BandMath?
i.e.
ima %*% f
where
ima: multi-spectral image (i.e. 2000 x 900 x 7)
f: matrix of coefficients, i.e. 7x7 matrix
%*% matrix multiplication
ima would be operated as a 1800000 x 7 matrix

Thanks

Agus


--
Guillaume PASERO
Responsable technique
Business Unit E-SPACE & Geo Information - Département Image & Applications

CS Systèmes d'Information
Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
31506 Toulouse Cedex 05 - FRANCE
+33 561 17 64 21 - [email protected]

--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
 
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to