ruby-opencv/ruby-opencv — Issue #7: can't pass result of image.split() to 
Author: artm
Created: 2012-03-01 14:53:44+00:00
State: open

The following code:

```
image = IplImage.load file_name
hsv = image.RGB2HSV
hue,saturation,v = hsv.split
hist = CvHistogram.new dim, sizes, CV_HIST_SPARSE, ranges, true
hist.calc_hist([hue])
```
breaks with:

```
wrong argument type OpenCV::CvMat (expected OpenCV::IplImage) (TypeError)
```

because the result of split is CvMat instead of IplImage.

Either there should be a way to convert CvMat to IplImage or IplImage#split should return IplImages.