| 2815 | \****************************************************************************************/ |
| 2816 | |
| 2817 | static IplROI* icvCreateROI( int coi, int xOffset, int yOffset, int width, int height ) |
| 2818 | { |
| 2819 | IplROI *roi = 0; |
| 2820 | if( !CvIPL.createROI ) |
| 2821 | { |
| 2822 | roi = (IplROI*)cvAlloc( sizeof(*roi)); |
| 2823 | |
| 2824 | roi->coi = coi; |
| 2825 | roi->xOffset = xOffset; |
| 2826 | roi->yOffset = yOffset; |
| 2827 | roi->width = width; |
| 2828 | roi->height = height; |
| 2829 | } |
| 2830 | else |
| 2831 | { |
| 2832 | roi = CvIPL.createROI( coi, xOffset, yOffset, width, height ); |
| 2833 | } |
| 2834 | |
| 2835 | return roi; |
| 2836 | } |
| 2837 | |
| 2838 | static void |
| 2839 | icvGetColorModel( int nchannels, const char** colorModel, const char** channelSeq ) |
no test coverage detected