Click here to Skip to main content
11,415,164 members (66,119 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VS2008
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 | :confused:
Posted 3-Dec-09 16:24pm
Edited 3-Dec-09 16:41pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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 ?
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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 )
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 6

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.
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 9,200
1 OriginalGriff 7,512
2 Maciej Los 3,710
3 Abhinav S 3,298
4 Peter Leow 3,084


Advertise | Privacy | Mobile
Web03 | 2.8.150427.4 | Last Updated 3 Dec 2009
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100