Ask Your Question
0

Which is the fastest way to parse an image in java pixel by pixel?

asked 2014-11-02 08:24:41 -0500

Is it faster to convert it to bufferedimage and then parse it? Or just use Mat?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-11-02 10:42:58 -0500

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 )

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-11-02 08:24:41 -0500

Seen: 772 times

Last updated: Nov 02 '14