Home > Software engineering >  MFC dynamic display images
MFC dynamic display images

Time:01-15

Recently started, learn the teacher gave a small homework (3.1 + VS2015 OPENCV), asked to do a dialog box that can be directly selected via file browser a picture, and then draw its histogram, finally, the two images are displayed,
Opencv drawing histogram of part I will do, but is not dynamic load images, also please everyone a great god help, a code is best,

CodePudding user response:

Baidu CFileDialog open file -- -- -- -- -- - this can choose the pictures from computer path

And then call the opencv correlation function for the image, can display images.

CodePudding user response:

Choose a picture from the browser, this action is manual to do? If is is according to the above said to select image by means of select files, if it is directly from a url to obtain images that will write an HTTP request to download the images

CodePudding user response:

You are under the MFC, is your choice, OpenFileDialog, choose to read, access to image path.
  • Related