Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Algorithms
  4. Please help with image feature extraction code!

Please help with image feature extraction code!

Scheduled Pinned Locked Moved Algorithms
algorithmshelptutorialregexquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    supernorb
    wrote on last edited by
    #1

    I'm being stuck at a project on Image feature extraction. I don't have many documents about it, such as to know what 'Image feature' is, how many methods we can use to extract image features and what they are. Then I have to write some code demonstrating what I've understood about Image feature extraction (as well as show its application). I intend to code to extract color features of image which are considered as the easiest thing to do with image feature extraction. I post this question here in algorithm forum because I think I need some clear step-by-step guide of algorithm to code follow. If possible, could you please help me with the following stuffs: 1. The best documents on Image feature extraction that cover many enough the basic concepts. (please don't tell me to Google it, I've done for weeks but the obtained documents are not much useful, I hope in your searching ability or your experience). 2. Some sample code extracting image feature (I prefer color feature, but the others will be fine). I'm also in need for some code involving extracting image feature, for example before going to next stage of processing like pattern recognition or content-based image searching. Finally, I'd like to say why I prefer color feature, just because it's the simplest of all, and I think I can code it in a page of lines without using any library, for others, I think some library like OpenCV should be used, but it's still not easy to me. (at least I have to learn about OpenCV and consume my time away, I have only more 1 week to finish all). Your help would be highly appreciated anyway! Thank you all, thank this forum!

    enhzflepE A B 3 Replies Last reply
    0
    • S supernorb

      I'm being stuck at a project on Image feature extraction. I don't have many documents about it, such as to know what 'Image feature' is, how many methods we can use to extract image features and what they are. Then I have to write some code demonstrating what I've understood about Image feature extraction (as well as show its application). I intend to code to extract color features of image which are considered as the easiest thing to do with image feature extraction. I post this question here in algorithm forum because I think I need some clear step-by-step guide of algorithm to code follow. If possible, could you please help me with the following stuffs: 1. The best documents on Image feature extraction that cover many enough the basic concepts. (please don't tell me to Google it, I've done for weeks but the obtained documents are not much useful, I hope in your searching ability or your experience). 2. Some sample code extracting image feature (I prefer color feature, but the others will be fine). I'm also in need for some code involving extracting image feature, for example before going to next stage of processing like pattern recognition or content-based image searching. Finally, I'd like to say why I prefer color feature, just because it's the simplest of all, and I think I can code it in a page of lines without using any library, for others, I think some library like OpenCV should be used, but it's still not easy to me. (at least I have to learn about OpenCV and consume my time away, I have only more 1 week to finish all). Your help would be highly appreciated anyway! Thank you all, thank this forum!

      enhzflepE Offline
      enhzflepE Offline
      enhzflep
      wrote on last edited by
      #2

      There's an article here somewhere, in which the author crafts a program that will solve any sudoku puzzle held up-to the pc's webcam. That article definitely deals with pattern matching - it's how it works out which digits are already printed within the game board. There's also another article here that automatically classifies images according to pre-learnt categories - Sunset, People, Animals, Flowers, Trees etc, etc. They'd both be likely a good read for you and should help. :eeek: "I have only more 1 week to finish all" - I won't ask how long you've had it for so far... ;P

      S 1 Reply Last reply
      0
      • enhzflepE enhzflep

        There's an article here somewhere, in which the author crafts a program that will solve any sudoku puzzle held up-to the pc's webcam. That article definitely deals with pattern matching - it's how it works out which digits are already printed within the game board. There's also another article here that automatically classifies images according to pre-learnt categories - Sunset, People, Animals, Flowers, Trees etc, etc. They'd both be likely a good read for you and should help. :eeek: "I have only more 1 week to finish all" - I won't ask how long you've had it for so far... ;P

        S Offline
        S Offline
        supernorb
        wrote on last edited by
        #3

        Thank you! You were always saying "there's an article here..." , "there's also another article here..."... but I don't see where they are, I need some link to those articles, could you please fulfil your help? I remember that I searched in here with all the key words possible but there were only some 'face recognition' projects using some library like Opencv. Anyway thank you very much!

        enhzflepE 1 Reply Last reply
        0
        • S supernorb

          Thank you! You were always saying "there's an article here..." , "there's also another article here..."... but I don't see where they are, I need some link to those articles, could you please fulfil your help? I remember that I searched in here with all the key words possible but there were only some 'face recognition' projects using some library like Opencv. Anyway thank you very much!

          enhzflepE Offline
          enhzflepE Offline
          enhzflep
          wrote on last edited by
          #4

          supernorb wrote:

          I remember that I searched in here with all the key words possible

          Oh, really? ;P Realtime Webcam Sudoku Solver[^] Automatic Linguistic Indexing of Pictures (ALIP) By Artificial Neural Network Approach[^]

          1 Reply Last reply
          0
          • S supernorb

            I'm being stuck at a project on Image feature extraction. I don't have many documents about it, such as to know what 'Image feature' is, how many methods we can use to extract image features and what they are. Then I have to write some code demonstrating what I've understood about Image feature extraction (as well as show its application). I intend to code to extract color features of image which are considered as the easiest thing to do with image feature extraction. I post this question here in algorithm forum because I think I need some clear step-by-step guide of algorithm to code follow. If possible, could you please help me with the following stuffs: 1. The best documents on Image feature extraction that cover many enough the basic concepts. (please don't tell me to Google it, I've done for weeks but the obtained documents are not much useful, I hope in your searching ability or your experience). 2. Some sample code extracting image feature (I prefer color feature, but the others will be fine). I'm also in need for some code involving extracting image feature, for example before going to next stage of processing like pattern recognition or content-based image searching. Finally, I'd like to say why I prefer color feature, just because it's the simplest of all, and I think I can code it in a page of lines without using any library, for others, I think some library like OpenCV should be used, but it's still not easy to me. (at least I have to learn about OpenCV and consume my time away, I have only more 1 week to finish all). Your help would be highly appreciated anyway! Thank you all, thank this forum!

            A Offline
            A Offline
            Alan Balkany
            wrote on last edited by
            #5

            There is a near-infinite number of image features you could extract. Which features you choose to extract should depend on your goal(s). E.g. if your goal is facial recognition, you'd extract features related to heads, eyes, etc... If your goal is part inspection, you'd extract features like lines with an edge-detection algorithm. Your problem seems to stem from the lack of goals; you appear to be doing feature extraction as an end in itself. There are a variety of edge-detection algorithms, some of which are easy to implement. One of the easiest is to shift the image one pixel then subtract it from the original image. Then set all pixels in the difference image below a threshold to zero. This zeroes out solid regions, leaving you with just the edges. After edge detection, you can take the edges and use them to identify higher-level features, based on their positions. If I were you, I wouldn't start learning a new technology one week before a deadline; that's asking for trouble. Just focus on what you can do with straightforward programming.

            "Microsoft -- Adding unnecessary complexity to your work since 1987!"

            1 Reply Last reply
            0
            • S supernorb

              I'm being stuck at a project on Image feature extraction. I don't have many documents about it, such as to know what 'Image feature' is, how many methods we can use to extract image features and what they are. Then I have to write some code demonstrating what I've understood about Image feature extraction (as well as show its application). I intend to code to extract color features of image which are considered as the easiest thing to do with image feature extraction. I post this question here in algorithm forum because I think I need some clear step-by-step guide of algorithm to code follow. If possible, could you please help me with the following stuffs: 1. The best documents on Image feature extraction that cover many enough the basic concepts. (please don't tell me to Google it, I've done for weeks but the obtained documents are not much useful, I hope in your searching ability or your experience). 2. Some sample code extracting image feature (I prefer color feature, but the others will be fine). I'm also in need for some code involving extracting image feature, for example before going to next stage of processing like pattern recognition or content-based image searching. Finally, I'd like to say why I prefer color feature, just because it's the simplest of all, and I think I can code it in a page of lines without using any library, for others, I think some library like OpenCV should be used, but it's still not easy to me. (at least I have to learn about OpenCV and consume my time away, I have only more 1 week to finish all). Your help would be highly appreciated anyway! Thank you all, thank this forum!

              B Offline
              B Offline
              BupeChombaDerrick
              wrote on last edited by
              #6

              I will assume color processing is what you want... i can advise that you start with color opponent process as occurs in the retinal ganglion cells see http://en.wikipedia.org/wiki/Opponent_process[^] opponent process results in Red vs Green, Blue vs Yellow and Black vs White channels, if you are wondering why go through this process? Well color sensor response overlaps (even the photo receptors in animals & humans) , and it is biologically proven to work.:cool: but only Red vs Green and Blue vs Yellow are what is needed for color processing. you can obtain a two dimensional vector at any position (one sample per channel) normalize the vector to unity magnitude and store it with the associated color (in an indexing structure like the Kd tree see http://en.wikipedia.org/wiki/Kd_tree[^]) as a prototype. So get such descriptors for all colors. then at run time repeat the whole process except that you run the indexing structure and label each pixel with a given color based on it's closest prototype in the indexing structure. Then you can do some statistics such as create a histogram to count the frequency of occurrence of each color and normalize the histogram, and that will be a descriptor vector for an image hence the resulting color descriptor can be used to retrieve images or compute their similarity score. or and 1 week, where have you been? :laugh: And as for feature extraction, there are low,intermediate and high level features, most of computer vision uses either low or intermediate level features there are so many algorithms for that such as SIFT (Scale Invariant Feature Transform) see http://en.wikipedia.org/wiki/Scale-invariant_feature_transform[^] and http://www.cs.ubc.ca/~lowe/papers/ijcv04.pdf[^]

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups