pgr_conversions.h
Go to the documentation of this file.
1 
5 #ifndef PGR_CONVERSIONS_H
6 #define PGR_CONVERSIONS_H
7 
13 //=============================================================================
14 // Copyright � 2007 Point Grey Research, Inc. All Rights Reserved.
15 //
16 // This software is the confidential and proprietary information of Point
17 // Grey Research, Inc. ("Confidential Information"). You shall not
18 // disclose such Confidential Information and shall use it only in
19 // accordance with the terms of the license agreement you entered into
20 // with Point Grey Research Inc.
21 //
22 // PGR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
23 // SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
24 // IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25 // PURPOSE, OR NON-INFRINGEMENT. PGR SHALL NOT BE LIABLE FOR ANY DAMAGES
26 // SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
27 // THIS SOFTWARE OR ITS DERIVATIVES.
28 //
29 //=============================================================================
30 
31 //=============================================================================
32 //
33 // pgr_conversions.h
34 //
35 //=============================================================================
36 
37 //=============================================================================
38 // System Includes
39 //=============================================================================
40 #include <dc1394/log.h>
41 #include <dc1394/control.h>
42 #include <dc1394/conversions.h>
43 
44 //=============================================================================
45 // PGR Includes
46 //=============================================================================
47 
48 
49 //=============================================================================
50 // Name: dc1394_deinterlace_rgb
51 //
52 // Input:
53 // src - The buffer to be de-interlaced
54 // width - The src buffer width (ncols)
55 // height - The src buffer height (nrows)
56 //
57 // Output:
58 // dest - The output buffer
59 //
60 // Description:
61 // This function is a simple re-spin of dc1394_deinterlace_stereo(), which
62 // deinterlaces a 16 bit image into 2 8 bit images. _rgb() makes 3 8bit images
63 // from a 24 bit image.
64 //
65 // The 2 8 bit images are stored in continguous memory at 'dest'.
66 //
67 //=============================================================================
68 void
69 dc1394_deinterlace_rgb( unsigned char* src,
70  unsigned char* dest,
71  unsigned int width,
72  unsigned int height);
73 
74 //=============================================================================
75 // Name: dc1394_deinterlace_green
76 //
77 // Input:
78 // src - The buffer to be de-interlaced
79 // width - The src buffer width (ncols)
80 // height - The src buffer height (nrows)
81 //
82 // Output:
83 // dest - The output buffer
84 //
85 // Description:
86 // This function is a simple re-spin of dc1394_deinterlace_stereo(), which
87 // deinterlaces a 16 bit image into 2 8 bit images. This function, however,
88 // simply deinterlaces the green channel from a 24 bit image. This can be
89 // done as a cheap approximation of a monochrome signal from a 24 bit image,
90 // since monochrome is 70% from the green signal
91 //
92 //=============================================================================
93 void
94 dc1394_deinterlace_green( unsigned char* src,
95  unsigned char* dest,
96  unsigned int width,
97  unsigned int height);
98 
99 #endif
100 
103 /*Previous 3 lines appended automatically on Wed Jun 9 00:11:56 WEST 2010 */
void dc1394_deinterlace_rgb(unsigned char *src, unsigned char *dest, unsigned int width, unsigned int height)
void dc1394_deinterlace_green(unsigned char *src, unsigned char *dest, unsigned int width, unsigned int height)


xb3
Author(s): Miguel Oliveira, Tiago Talhada
autogenerated on Mon Mar 2 2015 01:33:02