Constructing color histogram!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xpertbyshishir
    New Member
    • Apr 2007
    • 7

    Constructing color histogram!!

    I am trying to make a hsv histogram for storing different values.. It will will give me the max value for a pixel region in the image.. how do i go abt making a histogram.. so that i can compare values?
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by xpertbyshishir
    I am trying to make a hsv histogram for storing different values.. It will will give me the max value for a pixel region in the image.. how do i go abt making a histogram.. so that i can compare values?
    You do realize that the hsv (hue, saturation, value (brightness)) color space is
    a 3 dimensional color space? An image (of pixels or single hsv triples) is a two
    dimensional space of its own. How do you want to create a histogram out of all
    those values?

    kind regards,

    Jos

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by xpertbyshishir
      I am trying to make a hsv histogram for storing different values.. It will will give me the max value for a pixel region in the image.. how do i go abt making a histogram.. so that i can compare values?
      So you don't have any ideas/code for this yet?
      Please post the ideas that you have for this first.

      Comment

      • xpertbyshishir
        New Member
        • Apr 2007
        • 7

        #4
        I am intending to divide the image region into equal size boxes ..(prob 256)
        Each region will have a max value of hsv for the region , that is computed by the algo.. sample space would contain images with 256 regions and value of each region being set to highest value of hsv for that region.. now i would like to compare query image with sample space for corr. values .. so for this i want to store hsv information in histogram .. how should i go about constructing histogram?

        Comment

        • JosAH
          Recognized Expert MVP
          • Mar 2007
          • 11453

          #5
          Originally posted by xpertbyshishir
          I am intending to divide the image region into equal size boxes ..(prob 256)
          Each region will have a max value of hsv for the region
          Suppose there are two hsv triples: (10, 0, 0) and (0, 0, 10). Which one of the two
          is the maximum? I think you should define your algebra on hsv values a bit more.

          kind regards,

          Jos

          Comment

          Working...