Closed nicholasjhenry closed 10 years ago
I found that I can set a value using Mat#set(i, j, val)[1]. How do I set the individual channels in RGB?
[1] https://github.com/D-Alex/ropencv/blob/master/lib/ropencv/ropencv_ruby.rb#L425
Currently there are two ways to access a multi channel mat from ruby
I pushed a modified version of mat[],mat[]=,set(),at() to master supporting multiple channels
Thank you for the suggestions and modification. Very helpful!
I'm trying to translate the last three lines in the snippet below from C++ to Ruby. Any help would be much appreciated. Thank you!