Program Listing for File frame_utils.h

Return to documentation for file (include/libcaer/frame_utils.h)

#ifndef LIBCAER_FRAME_UTILS_H_
#define LIBCAER_FRAME_UTILS_H_

#include "events/frame.h"

#ifdef __cplusplus
extern "C" {
#endif

enum caer_frame_utils_demosaic_types {
    DEMOSAIC_STANDARD = 0,
    DEMOSAIC_TO_GRAY  = 1,
#if defined(LIBCAER_HAVE_OPENCV) && LIBCAER_HAVE_OPENCV == 1
    DEMOSAIC_OPENCV_STANDARD   = 2,
    DEMOSAIC_OPENCV_EDGE_AWARE = 3,
    DEMOSAIC_OPENCV_TO_GRAY    = 4,
// DEMOSAIC_OPENCV_VARIABLE_NUMBER_OF_GRADIENTS not supported on 16bit images.
#endif
};

enum caer_frame_utils_contrast_types {
    CONTRAST_STANDARD = 0,
#if defined(LIBCAER_HAVE_OPENCV) && LIBCAER_HAVE_OPENCV == 1
    CONTRAST_OPENCV_NORMALIZATION          = 1,
    CONTRAST_OPENCV_HISTOGRAM_EQUALIZATION = 2,
    CONTRAST_OPENCV_CLAHE                  = 3,
#endif
};

LIBRARY_PUBLIC_VISIBILITY void caerFrameUtilsDemosaic(
    caerFrameEventConst inputFrame, caerFrameEvent outputFrame, enum caer_frame_utils_demosaic_types demosaicType);
LIBRARY_PUBLIC_VISIBILITY void caerFrameUtilsContrast(
    caerFrameEventConst inputFrame, caerFrameEvent outputFrame, enum caer_frame_utils_contrast_types contrastType);

enum caer_frame_utils_pixel_color { PX_COLOR_R, PX_COLOR_B, PX_COLOR_G1, PX_COLOR_G2, PX_COLOR_W };

enum caer_frame_utils_pixel_color caerFrameUtilsPixelColor(
    enum caer_frame_event_color_filter colorFilter, int32_t x, int32_t y);

#ifdef __cplusplus
}
#endif

#endif /* LIBCAER_FRAME_UTILS_H_ */