Skip to content

Instantly share code, notes, and snippets.

@luoyetx
Created June 2, 2015 07:25
Show Gist options
  • Select an option

  • Save luoyetx/48f50b178bcabcad6f08 to your computer and use it in GitHub Desktop.

Select an option

Save luoyetx/48f50b178bcabcad6f08 to your computer and use it in GitHub Desktop.
#define C_IplImage_T_RwImage(ipl, rwi) do { \
(rwi).height = (ipl).height; (rwi).width = (ipl).width; \
(rwi).image_size = (ipl).imageSize; (rwi).widthStep = (ipl).widthStep; \
(rwi).imagedata = (uchar*)((ipl).imageData); \
} while(0)
#define C_RwImage_T_IplImage(rwi, ipl) do { \
(ipl).height = (rwi).height; (ipl).width = (rwi).width; \
(ipl).imageSize = (rwi).image_size; (ipl).widthStep = (rwi).widthStep; \
(ipl).imageData = (uchar*)((rwi).imagedata); \
} while(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment