LightField Toolbox: Auswertung von Lytro Bildern mit Matlab

LightField Toolbox: Lytro Image Processing in Matlab Das Auswerten und Darstellen von Lytro LichtFeld Bildern passiert allgemein in der kostenlosen, offiziellen Lytro Desktop Software. Wer aber etwas mehr Kontrolle über die LichtFeld-Ergebnisse möchte, kann schon jetzt auf eine Reihe von Tools für genau diesen Zweck zurückgreifen (wobei die Desktop Software nach wie vor zum Übertragen der Bilder von der Kamera benötigt wird).

Der neueste Eintrag in der Liste von offen erhältlichen LichtFeld Tools ist die LightField Toolbox v0.1 für Matlab, von Donald G. Dansereau.
In der ersten Version beschränken sich die Features auf grundsätzliche Funktionen wie Laden, Dekodieren, Farbkorrektur und Visualisierung (inkl. einem einfachen Perspektiven-Effekt) von Lytro LichtFeld Bildern. Weitere Funktionen sind aber bereits geplant:

This version of the toolbox and documentation are focused on Lytro imagery. Adapting this to other cameras should be straightforward. Future releases will support additional input formats, camera calibration, image rectification, and depth and volumetric filtering for improved rendering quality.

Ein Paket mit Beispiel-LichtFeldern steht ebenfalls bereits zur Verfügung:

  LightField Sample Pack 1 for LightField Toolbox v0.1 (72.8 MiB, 2,179 hits)

Die LichtFeld Toolbox v0.1 beinhaltet die folgenden Funktionen:

Decoding / Input

  • LFDecodeLenseletSimple
    Decodes a 2D lenselet image to a 4D light field using a white image and grid model. See example usage in LFExampleDecodeLenseletImage.
  • LFExampleDecodeLenseletImage
    Demonstrates decoding of lenselet-based light fields using LFDecodeLenseletSimple and LFSelectWhiteImage.
  • LFSelectWhiteImage
    Selects the white image appropriate for a given zoom and focus setting. See example usage in LFExampleDecodeLenseletImage.
  • LFUtilProcessLytroCalData
    Processes a folder populated with Lytro calibration data. Only white files and their associated metadata (.TXT) files are used. This generates a grid model (.grid.mat) for each white image, and a white image database (WhiteFileDatabase.mat) used by LFSelectWhiteImage. Darker white images are automatically detected and skipped.
    This function will generally only be used once for each Lytro camera.

Image Adjustment

  • LFColourCorrect
    Applies a colour balance vector, an RGB colour correction matrix, and
    gamma correction. Usage is demonstrated in LFExampleColourCorrect.
  • LFExampleColourCorrect
    Demonstrates use of LFColourCorrect to apply colour and gamma correction based on light field metadata. Also demonstrates use of LFHistEqualize to adjust the brightness of a light field based on histogram equalization.
  • LFHistEqualize
    Adjusts the brightness of a light field based on histogram equalization,
    usage is demonstrated in LFExampleColourCorrect.

Visualization

  • LFDispMousePan
    Display 2D slices of the light field with a rudimentary parallax effect. Click and drag in the image to change the point of view. Note that darkening at the edges of the image means that the effect is best near the center of the spatial range. For an automatically animated display,
    see LFDispVidCirc.
  • LFDispVidCirc
    Animated display showing 2D slices of the light field, similar to LFDisp-
    MousePan except the motion is preset to a circular path. An optional argument allows the radius of the circular path to be set.

File I/O

  • LFReadMetadata
    Reads the Lytro metadata files, which are in json format.
  • LFReadRaw
    There is no standard raw file format, and different tools generate differently formatted files. This function reads the 12-bit packed raw files generated by the LFP Reader tool when extracting white images and lenselet images.

Utility / Convenience

  • LFGatherWhiteImageInfo
    Builds a list of white images and associated camera settings by crawling through a prescribed folder. Called by LFUtilProcessLytroCalData to build the database of white images.

Support Functions

  • LFBuildLenseletGridModel
    Function for building a grid model from a white image. Called by LFUtilProcessLytroCalData.
  • LFRotz
    Builds a 3D rotation matrix: rotation around the z axis.

Die Methode der Bild-Dekodierung wird in Kürze veröffentlicht:
D. G. Dansereau, O. Pizarro, and S. B. Williams: Decoding, calibration and rectification for lenselet-based plenoptic cameras. In: Computer Vision and Pattern Recognition (CVPR), IEEE Conference on. IEEE, Jun 2013.

Das könnte Dich auch interessieren …

1 Antwort

Kommentar verfassen

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.