lfcnn.models.center_and_disparity package

Submodules

lfcnn.models.center_and_disparity.conv3d_decode2d module

Encoder-decoder network based on 3D convolution for estimating disparity and a central view from spectrally coded light fields.

class lfcnn.models.center_and_disparity.conv3d_decode2d.Conv3dDecode2d(**kwargs)[source]

Bases: lfcnn.models.abstracts.BaseModel

create_model(inputs, augmented_shape=None)[source]

Create the Keras model. Needs to be implemented by the derived class to define the network topology.

Parameters
  • inputs (List[Input]) – List of Keras Inputs. Single or multi inputs supported.

  • augmented_shape – The augmented shape as generated by the generator. Can be used to obtain the original light field’s shape, for example the number of subapertures or the number of spectral channels.

Return type

Model

set_generator_and_reshape()[source]

lfcnn.models.center_and_disparity.conv3d_decode3d module

Encoder-decoder network based on 3D convolution for estimating disparity and a central view from spectrally coded light fields.

class lfcnn.models.center_and_disparity.conv3d_decode3d.Conv3dDecode3d(**kwargs)[source]

Bases: lfcnn.models.abstracts.BaseModel

create_model(inputs, augmented_shape=None)[source]

Create the Keras model. Needs to be implemented by the derived class to define the network topology.

Parameters
  • inputs (List[Input]) – List of Keras Inputs. Single or multi inputs supported.

  • augmented_shape – The augmented shape as generated by the generator. Can be used to obtain the original light field’s shape, for example the number of subapertures or the number of spectral channels.

Return type

Model

set_generator_and_reshape()[source]

lfcnn.models.center_and_disparity.dummy module

Light field 2 output dummy model.

class lfcnn.models.center_and_disparity.dummy.Dummy(depth=0, **kwargs)[source]

Bases: lfcnn.models.abstracts.BaseModel

create_model(inputs, augmented_shape)[source]

Create the Keras model. Needs to be implemented by the derived class to define the network topology.

Parameters
  • inputs (List[Input]) – List of Keras Inputs. Single or multi inputs supported.

  • augmented_shape – The augmented shape as generated by the generator. Can be used to obtain the original light field’s shape, for example the number of subapertures or the number of spectral channels.

Return type

Model

property depth
static final_reshape_central_view(input, augmented_shape, name='reshape')[source]

Reshape to central view

static final_reshape_disparity(input, augmented_shape, name='reshape')[source]

Reshape to disparity

set_generator_and_reshape()[source]

Module contents

The LFCNN central view and disparity estimator models.

lfcnn.models.center_and_disparity.get(model)[source]

Given a model name, returns an lfcnn model instance.

Parameters

model (str) – Name of the model.

Returns

Model instance.