D-Alex / ropencv

ffi ruby wrapper for opencv
Other
67 stars 14 forks source link

imread when in console tries to display matrix after load, causing cpu to spin #12

Closed cgat closed 10 years ago

cgat commented 10 years ago

I noticed that when I was in rails console (or irb) and did an imread on a medium sized photos, the CPU would just spinning. This is happening because matrices are displayed in the matlab format (which I love). Good for small matrices, bad for big ones. Perhaps just display the object when the matrix is of a certain size.

In the meantime, there is an easy work around by suffixing the command with nil: img = cv::imread(my_path); nil

D-Alex commented 10 years ago

Thank you for the suggestion. I will definitely add this feature in the next release.