Re: shape recognition



"Peter T" <peter_t@discussions> escribió en el mensaje
news:umkBeDSLJHA.6000@xxxxxxxxxxxxxxxxxxxxxxx
Analyze the image in this way:
Start at the middle of each edge, and see the color of the pixels, each
one going towards the center.
Then go one pixel each time to one of the vertex and see if the same
pattern repeats, but more inward than when i looked in the middle.

I'm also thinking of making a function "ColorIsSimilar", because the
color may be not exactly the same, but similar.

When you say "similar" do you mean in terms of numerical RGB or
"visually".

Good point.
And of course, as they are images, they are for the human eye.

Point being, the eye does not perceive much separation with some colours,
eg greens, but very small differences in say cyan are very noticeable.

If by similar you mean "visually" it might be worth looking into the 3D
"colour shape" or "colour space" (search w/out the "u"). There are
numerous algorithms out there of varying complexity to define a colour
shape. Having defined your space, fix your RGB's at points in the 3D
space, return their xyz coordinates form some arbitrary origin.

The colour difference is the distance between the colours in the 3D space.

Well, the images can have a shadow, but they are just 2D (i think, though, i
don't know when an image pass from 2D to be considered as 3D).


If you are only looking for extremely small differences, eg up to about 5
in each RGB 0-255 scale (within range of say typical jpg representation of
same colour), it's probably OK to ignore the above for your purposes and
concentrate on what you are already doing.

I'm looking for much bigger differences. For the kind of differences that
the eye perceive as the outline of a shape (in a small bitmap).

You made a good point here about the difference of sensitivity of the eye to
different colors. I ignored that until now. I'll see what I'll do.
I think for the time being i'll keep ignoring that, and when i have the
recognition algorithm done, then i'll tweak the ColorsAreSimilar function.

Thanks.


Regards,
Peter T




.



Relevant Pages

  • Re: Alarming binocular experiment
    ... > compare one eye with photon density x vs. two eyes with photon density x/2. ... I strongly believe that a binocular system will out-score a monocular system. ... When the distance is precisely right both left and right images are ... either the separate left or right eye image image seems clear. ...
    (sci.astro.amateur)
  • Re: Double Image Question
    ... Covering either eye doen't help. ... lighter but still sharp and in focus. ... The distorted front surface produces multiple images. ... Glasses, no contacts, severe nearsightedness, slight astig. ...
    (sci.optics)
  • Re: vision - perception / attention
    ... and not the ipsilateral eye. ... The regional blood flow is a feeling of increased pressure in the ... images take about 0.2 seconds to fuse. ... Whoa whoa whoa - that's too much conclusion and not enough data. ...
    (sci.med.vision)
  • Re: Langham: a victim of gross injustice
    ... You and I will never see eye to eye ... doubt as to whether he really is turned on by the images but should have ... Langham with a journalist or a police officer and your doubts ... Hastings were asked various simple questions about history. ...
    (uk.legal)
  • Re: TIFF vs JEPG
    ... individual pixels, you will see that some of the pixels are ... I downloaded the two images that Raphael referenced in his reply ... see JPEG artifact squares, and still wasn't sure which image was ... TIFF and good JPEG. ...
    (comp.periphs.scanners)

Quantcast