# Monteverdi and multiband complex data

This page tries to summarize the current status of data conversion done in Monteverdi.

In the Reader Module, when an input file is selected, a type of output is proposed by analysis of the input pixel type but user can override this choice. Moreover the number of band has an impact on the output render in Monteverdi.

## Reading a monoband scalar image

### with Data type selector = Optical Image

• OK
• Nominal Case
• Create one VectorImage with one band: out(1) = in

### with Data type selector = SAR Image

• OK
• Create one Complex Image: out = (in , 0 )
• Create 4 Scalar Images: Re(out), Im(out) = 0, Abs(out), Phase(out)

## Reading a monoband complex image

### with Data type selector = Optical Image

• OK
• Create one VectorImage: out(1) = Re(in) and out(2) = Im(in)
• Create 3 Scalar Image: Abs(in), out(1) and out(2)

### with Data type selector = SAR Image

• OK
• Nominal Case
• Create one Complex Image: out = in
• Create 4 Scalar Images : Re(out), Im(out), Abs(out), Phase(out)

## Reading a multiband scalar image

we consider that the input file is composed of nbinputBands.

### with Data type selector = Optical Image

• OK
• Nominal Case
• Create one Vector Image: out(i) = in(i) with i=[1,nbInputBands]
• Create nbInputBands Scalar Images

### with Data type selector = SAR Image

• if nbInputBands == 2 OK (coherent with spec in OTB)
• Create of 1 Complex Image: out= (in(1), in(2)) and 4 Scalar Images: Re(out), Im(out), Abs(out), Phase(out)
• if nbInputBands > 2 then WEIRD CASE should deactivate open button.

## Reading a multiband complex image

### with Data type selector = Optical Image

• OK (coherent with OTB spec)
• Create one VectorImage with 2*nbInputBands bands
• Create 2*nbInputBands Scalar Images: out(2k-1) = Re(in(k)) and out(2k) = Im(in(k)) with k=[1,nbInputBands]