jloyd / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

IplImage accepting int[] arrays #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
would be nice if IplImage could accept arrays and/or Buffers instead of 
BufferedImage

Original issue reported on code.google.com by victamin...@gmail.com on 20 Oct 2010 at 7:18

GoogleCodeExporter commented 9 years ago
Sure, something like this works:
IplImage image = IplImage.create(width, height, IPL_DEPTH_32S, 1);
image.getIntBuffer().put(myIntArray)

Original comment by samuel.a...@gmail.com on 22 Oct 2010 at 5:42

GoogleCodeExporter commented 9 years ago
thank you for the tip. it sure helps

Original comment by victamin...@gmail.com on 22 Oct 2010 at 5:48