00001 00005 #ifndef PGR_CONVERSIONS_H 00006 #define PGR_CONVERSIONS_H 00007 00013 //============================================================================= 00014 // Copyright � 2007 Point Grey Research, Inc. All Rights Reserved. 00015 // 00016 // This software is the confidential and proprietary information of Point 00017 // Grey Research, Inc. ("Confidential Information"). You shall not 00018 // disclose such Confidential Information and shall use it only in 00019 // accordance with the terms of the license agreement you entered into 00020 // with Point Grey Research Inc. 00021 // 00022 // PGR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE 00023 // SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 00024 // IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 00025 // PURPOSE, OR NON-INFRINGEMENT. PGR SHALL NOT BE LIABLE FOR ANY DAMAGES 00026 // SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING 00027 // THIS SOFTWARE OR ITS DERIVATIVES. 00028 // 00029 //============================================================================= 00030 00031 //============================================================================= 00032 // 00033 // pgr_conversions.h 00034 // 00035 //============================================================================= 00036 00037 //============================================================================= 00038 // System Includes 00039 //============================================================================= 00040 #include <dc1394/log.h> 00041 #include <dc1394/control.h> 00042 #include <dc1394/conversions.h> 00043 00044 //============================================================================= 00045 // PGR Includes 00046 //============================================================================= 00047 00048 00049 //============================================================================= 00050 // Name: dc1394_deinterlace_rgb 00051 // 00052 // Input: 00053 // src - The buffer to be de-interlaced 00054 // width - The src buffer width (ncols) 00055 // height - The src buffer height (nrows) 00056 // 00057 // Output: 00058 // dest - The output buffer 00059 // 00060 // Description: 00061 // This function is a simple re-spin of dc1394_deinterlace_stereo(), which 00062 // deinterlaces a 16 bit image into 2 8 bit images. _rgb() makes 3 8bit images 00063 // from a 24 bit image. 00064 // 00065 // The 2 8 bit images are stored in continguous memory at 'dest'. 00066 // 00067 //============================================================================= 00068 void 00069 dc1394_deinterlace_rgb( unsigned char* src, 00070 unsigned char* dest, 00071 unsigned int width, 00072 unsigned int height); 00073 00074 //============================================================================= 00075 // Name: dc1394_deinterlace_green 00076 // 00077 // Input: 00078 // src - The buffer to be de-interlaced 00079 // width - The src buffer width (ncols) 00080 // height - The src buffer height (nrows) 00081 // 00082 // Output: 00083 // dest - The output buffer 00084 // 00085 // Description: 00086 // This function is a simple re-spin of dc1394_deinterlace_stereo(), which 00087 // deinterlaces a 16 bit image into 2 8 bit images. This function, however, 00088 // simply deinterlaces the green channel from a 24 bit image. This can be 00089 // done as a cheap approximation of a monochrome signal from a 24 bit image, 00090 // since monochrome is 70% from the green signal 00091 // 00092 //============================================================================= 00093 void 00094 dc1394_deinterlace_green( unsigned char* src, 00095 unsigned char* dest, 00096 unsigned int width, 00097 unsigned int height); 00098 00099 #endif 00100 00103 /*Previous 3 lines appended automatically on Wed Jun 9 00:11:56 WEST 2010 */