Which is the fastest way to parse an image in java pixel by pixel?
Is it faster to convert it to bufferedimage and then parse it? Or just use Mat?
The fastest way to iterate over all pixels should be reading directly from the data-member of cv::Mat. There is a nice tutorial about scanning an image here: http://docs.opencv.org/doc/tutorials/core/how_to_scan_images/how_to_scan_images.html (In java it looks a bit different, bit it should work similar: http://stackoverflow.com/questions/9920449/converting-opencv-matrix-looping-to-javacv )
Asked: 2014-11-02 08:24:41 -0600
Seen: 1,097 times
Last updated: Nov 02 '14