Ask Your Question
0

Load and storage/save an image in OpenCV Java Mat class

asked 2015-05-25 09:59:00 -0500

PAscal gravatar image

updated 2016-01-03 15:34:34 -0500

I really don't know what to do. We have to write a OpenCV program with using Java. And we have to load and storage an image in the Mat-Class from OpenCV. I never worked with OpenCV. And additional I am not really the best in programming Java. So I really don't know how to start and what to do next :(

I only think that I need to use the Highgui imread and imwrite. But dont know how to write it down :(

Pls could anybody here send me a example code with loading and storage images in Mat-Class from OpenCV using Java?

It would be such a big help for me.

edit retag flag offensive close merge delete

Comments

didnt understaind ur problem can u be more specific on what ur program should do

vildethe gravatar imagevildethe ( 2015-05-26 19:56:15 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-28 09:47:41 -0500

PAscal gravatar image

Hi, our task is: Given one colored image of the KITTI dataset load it and store it in the Open CV "Mat" class. How can you extract the value of one pixel? Find the corresponding method and interpret its output. Split the image into its 3 R,G,B channels plotting them. How do they look like with respect to the original image? Are these images colored or in greyscale? What are the di erences among them? Why? How can you remove one channel from the original image?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-05-25 09:59:00 -0500

Seen: 366 times

Last updated: May 28 '15