image.h
Go to the documentation of this file.
00001 // License: Apache 2.0. See LICENSE file in root directory.
00002 // Copyright(c) 2015 Intel Corporation. All Rights Reserved.
00003 
00004 #pragma once
00005 #ifndef LIBREALSENSE_IMAGE_H
00006 #define LIBREALSENSE_IMAGE_H
00007 
00008 #include "types.h"
00009 
00010 namespace rsimpl
00011 {
00012 
00013     size_t           get_image_size                 (int width, int height, rs_format format);
00014     int              get_image_bpp                  (rs_format format);
00015     void             deproject_z                    (float * points, const rs_intrinsics & z_intrin, const uint16_t * z_pixels, float z_scale);
00016     void             deproject_disparity            (float * points, const rs_intrinsics & disparity_intrin, const uint16_t * disparity_pixels, float disparity_scale);
00017 
00018     void             align_z_to_other               (byte * z_aligned_to_other, const uint16_t * z_pixels, float z_scale, const rs_intrinsics & z_intrin, 
00019                                                      const rs_extrinsics & z_to_other, const rs_intrinsics & other_intrin);
00020     void             align_disparity_to_other       (byte * disparity_aligned_to_other, const uint16_t * disparity_pixels, float disparity_scale, const rs_intrinsics & disparity_intrin, 
00021                                                      const rs_extrinsics & disparity_to_other, const rs_intrinsics & other_intrin);
00022     void             align_other_to_z               (byte * other_aligned_to_z, const uint16_t * z_pixels, float z_scale, const rs_intrinsics & z_intrin, 
00023                                                      const rs_extrinsics & z_to_other, const rs_intrinsics & other_intrin, const byte * other_pixels, rs_format other_format);
00024     void             align_other_to_disparity       (byte * other_aligned_to_disparity, const uint16_t * disparity_pixels, float disparity_scale, const rs_intrinsics & disparity_intrin, 
00025                                                      const rs_extrinsics & disparity_to_other, const rs_intrinsics & other_intrin, const byte * other_pixels, rs_format other_format);
00026 
00027     std::vector<int> compute_rectification_table    (const rs_intrinsics & rect_intrin, const rs_extrinsics & rect_to_unrect, const rs_intrinsics & unrect_intrin);
00028     void             rectify_image                  (uint8_t * rect_pixels, const std::vector<int> & rectification_table, const uint8_t * unrect_pixels, rs_format format);
00029 
00030     extern const native_pixel_format pf_raw8;       // Four 8 bit luminance
00031     extern const native_pixel_format pf_rw10;       // Four 10 bit luminance values in one 40 bit macropixel
00032     extern const native_pixel_format pf_rw16;       // 10 bit in 16 bit WORD with 6 bit unused
00033     extern const native_pixel_format pf_yuy2;       // Y0 U Y1 V ordered chroma subsampled macropixel
00034     extern const native_pixel_format pf_y8;         // 8 bit (left) IR image
00035     extern const native_pixel_format pf_y8i;        // 8 bits left IR + 8 bits right IR per pixel
00036     extern const native_pixel_format pf_y16;        // 16 bit (left) IR image
00037     extern const native_pixel_format pf_y12i;       // 12 bits left IR + 12 bits right IR per pixel
00038     extern const native_pixel_format pf_z16;        // 16 bit Z image
00039     extern const native_pixel_format pf_invz;       // 16 bit Z image
00040     extern const native_pixel_format pf_f200_invi;  // 8-bit IR image
00041     extern const native_pixel_format pf_f200_inzi;  // 16-bit Z + 8 bit IR per pixel
00042     extern const native_pixel_format pf_sr300_invi; // 16-bit IR image
00043     extern const native_pixel_format pf_sr300_inzi; // Planar 16-bit IR image followed by 16-bit Z image
00044 }
00045 
00046 #endif


librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Tue Jun 25 2019 19:54:39