Ask Your Question

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

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: (In java it looks a bit different, bit it should work similar: )

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


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

Seen: 840 times

Last updated: Nov 02 '14