# SARPolarMatrixConvert

## Brief Description

This applications allows converting classical polarimetric matrices to each other.

## Tags

SAR

## Long Description

This application allows converting classical polarimetric matrices to each other. For instance, it is possible to get the coherency matrix from the Sinclar one, or the Mueller matrix from the coherency one. The filters used in this application never handle matrices, but images where each band is related to their elements. As most of the time SAR polarimetry handles symmetric/hermitian matrices, only the relevant elements are stored, so that the images representing them have a minimal number of bands. For instance, the coherency matrix size is 3x3 in the monostatic case, and 4x4 in the bistatic case : it will thus be stored in a 6-band or a 10-band complex image (the diagonal and the upper elements of the matrix). The Sinclair matrix is a special case : it is always represented as 3 or 4 one-band complex images (for mono- or bistatic case). The available conversions are listed below: --- Monostatic case --- 1 msinclairtocoherency --> Sinclair matrix to coherency matrix (input : 3 x 1 complex channel (HH, HV or VH, VV) | output : 6 complex channels) 2 msinclairtocovariance --> Sinclair matrix to covariance matrix (input : 3 x 1 complex channel (HH, HV or VH, VV) | output : 6 complex channels) 3 msinclairtocircovariance --> Sinclair matrix to circular covariance matrix (input : 3 x 1 complex channel (HH, HV or VH, VV) | output : 6 complex channels) 4 mcoherencytomueller --> Coherency matrix to Mueller matrix (input : 6 complex channels | 16 real channels) 5 mcovariancetocoherencydegree --> Covariance matrix to coherency degree (input : 6 complex channels | 3 complex channels) 6 mcovariancetocoherency --> Covariance matrix to coherency matrix (input : 6 complex channels | 6 complex channels) 7 mlinearcovariancetocircularcovariance --> Covariance matrix to circular covariance matrix (input : 6 complex channels | output : 6 complex channels) --- Bistatic case --- 8 bsinclairtocoherency --> Sinclair matrix to coherency matrix (input : 4 x 1 complex channel (HH, HV, VH, VV) | 10 complex channels) 9 bsinclairtocovariance --> Sinclair matrix to covariance matrix (input : 4 x 1 complex channel (HH, HV, VH, VV) | output : 10 complex channels) 10 bsinclairtocircovariance --> Sinclair matrix to circular covariance matrix (input : 4 x 1 complex channel (HH, HV, VH, VV) | output : 10 complex channels) --- Both cases --- 11 sinclairtomueller --> Sinclair matrix to Mueller matrix (input : 4 x 1 complex channel (HH, HV, VH, VV) | output : 16 real channels) 12 muellertomcovariance --> Mueller matrix to covariance matrix (input : 16 real channels | output : 6 complex channels) 13 muellertopoldegandpower --> Mueller matrix to polarization degree and power (input : 16 real channels | output : 4 real channels)

## Parameters

- [param] -inc <string> Input : multi-band complex image. Mandatory: False. Default Value: ""
- [param] -inf <string> Input : multi-band real image. Mandatory: False. Default Value: ""
- [param] -inhh <string> Input : one-band complex image (HH). Mandatory: False. Default Value: ""
- [param] -inhv <string> Input : one-band complex image (HV). Mandatory: False. Default Value: ""
- [param] -invh <string> Input : one-band complex image (VH). Mandatory: False. Default Value: ""
- [param] -invv <string> Input : one-band complex image (VV). Mandatory: False. Default Value: ""
- [param] -outc <string> Output Complex image.. Mandatory: False. Default Value: "0"
- [param] -outf <string> Output Real image.. Mandatory: False. Default Value: ""
- [param] -ram <int32> Available memory for processing (in MB). Mandatory: False. Default Value: "128"
- [param] -inxml <string> Load otb application from xml file. Mandatory: False. Default Value: ""
- [param] -outxml <string> Save otb application to xml file. Mandatory: False. Default Value: ""
[choice] -conv msinclairtocoherency,msinclairtocovariance,msinclairtocircovariance,mcoherencytomueller,mcovariancetocoherencydegree,mcovariancetocoherency,mlinearcovariancetocircularcovariance,muellertomcovariance,bsinclairtocoherency,bsinclairtocovariance,bsinclairtocircovariance,sinclairtomueller,muellertopoldegandpower. Mandatory: True. Default Value: "msinclairtocoherency"

- [group] -msinclairtocoherency

- [group] -msinclairtocovariance

- [group] -msinclairtocircovariance

- [group] -mcoherencytomueller

- [group] -mcovariancetocoherencydegree

- [group] -mcovariancetocoherency

- [group] -mlinearcovariancetocircularcovariance

- [group] -muellertomcovariance

- [group] -bsinclairtocoherency

- [group] -bsinclairtocovariance

- [group] -bsinclairtocircovariance

- [group] -sinclairtomueller

- [group] -muellertopoldegandpower

## Limitations

None

## Authors

OTB-Team

## See Also

SARPolarSynth, SARDecompositions

## Example of use

- inhh: HH.tif

- invh: VH.tif

- invv: VV.tif

- conv: msinclairtocoherency

- outc: mcoherency.tif