| 1484 | |
| 1485 | |
| 1486 | static void convertConvKernel( const IplConvKernel* src, cv::Mat& dst, cv::Point& anchor ) |
| 1487 | { |
| 1488 | if(!src) |
| 1489 | { |
| 1490 | anchor = cv::Point(1,1); |
| 1491 | dst.release(); |
| 1492 | return; |
| 1493 | } |
| 1494 | anchor = cv::Point(src->anchorX, src->anchorY); |
| 1495 | dst.create(src->nRows, src->nCols, CV_8U); |
| 1496 | |
| 1497 | int i, size = src->nRows*src->nCols; |
| 1498 | for( i = 0; i < size; i++ ) |
| 1499 | dst.data[i] = (uchar)(src->values[i] != 0); |
| 1500 | } |
| 1501 | |
| 1502 | |
| 1503 | CV_IMPL void |