Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi everyone
I'm developing a project for my Image processing class. Is like a program to recognize posters of movies. Basically, I need to figure out how to trim photos made with the camera in a way they can be matched with similar pictures in a database.


I'm using MFC for C++. Also, My professor told me that I need to use circular buffering for storing each picture.

do you know any procedure useful for? :confused:
Posted
Updated 3-Dec-09 15:41pm
v2

You need to take a photo of a movie poster and make it match another picture of the same poster in the database ? The definition of circular buffer is:

(computer science) A technique for receiving data in an input-output control system which uses a single buffer that appears to be organized in a circle, with data wrapping around it.

So, I don't see how you can use a circular buffer to store a picture. It means a data stream where you continuously move through the same buffer over and over, in a circle. Did your professor explain what the term meant and how you are to impliment it ? Comparing two different pictures to say if they are of the same thing is far from trivial, what resources has he given you to do this task ?
 
Share this answer
 
Is for storage pictures momentarily in a buffer. If another photo is taken the image is replaced. This program must be a kind of real time application for image processing.

the basic is:
1. take a photo using a webcam
2. trim the picture
3. match with a similar picture in the database

Actually My problem is the second point
 
Share this answer
 
What do you mean by 'trim' ? To make a picture smaller in C++, you create a new picture of the right size and copy just the required section over. Do you mean that ? Or do you mean working out how to figure out where to trim the picture ( which is an issue of edge detection, I have an article on edge detection on this site and so do others ), or do you mean that you're somehow imagining that if you trim the picture right, your picture will exactly match on in the database ? ( it won't )
 
Share this answer
 
Well, trim means only take the part what I need of the picture (only the part that belongs to the picture). Could you please give me the link to your article of edge detection.

What do you suggest for make this program?

thank you
 
Share this answer
 
Image Processing for Dummies with C# and GDI+ Part 3 - Edge Detection Filters[^]. It's in c#, but the concepts and algorithms are generic.

I don't mean to be rude, but if you're not capable of using the search functionality on the site, I wonder how you're going to go writing a complex system that examines two totally different pictures and tries to work out if they are of the same thing. The pixel values are NOT going to match, it's a much more complex task than that. Trimming the picture is the least of your worries. If this is for a class, I'd be talking to the teacher and asking him what resources you should be using, because he obviously believes you have all the information you need to do this task.
 
Share this answer
 
Yeah, I know it is pretty difficult. I have to write a complex algorithm for. But right now I'm trying to figure out how to store the pictures in a circular buffering.

Circular Buffering is new for me.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900