Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: Image Analysis

by fluffyvoidwarrior (Monk)
on Oct 26, 2010 at 05:17 UTC ( #867401=note: print w/ replies, xml ) Need Help??

in reply to Re: Image Analysis
in thread Image Analysis

That seems very interesting. However the objects are moving within a moving stream of sludge. Everything moves. Also, when I referred to noise I didn't mean video noise, I meant random background artefacts caused by the sludge flow. Everything is coated in sludge so I can't use colour, everything is the same temp so I can't use IR, nothing is metallic so I can't use electromagnetic detectors. The only option that is plainly visible is hard edges within a rough surfaced undulating flow of gunge. Unfortunately I can't show you all what I'm working with - my client would go ape and consider it a total infringement of confidentiality. So I can only describe the problem.

Comment on Re^2: Image Analysis
Replies are listed 'Best First'.
Re^3: Image Analysis
by zentara (Archbishop) on Oct 26, 2010 at 11:04 UTC
    The only option that is plainly visible is hard edges within a rough surfaced undulating flow of gunge.

    It seems then that you should first concentrate on edge-detection, see the difference between two colors, and how to describe a color. You might use some sort of Fourier analysis to filter out everything except for the highfreq ( sharp edges ). See ImageMagick Fourier Edge Detection and Gimp -sharpening and Gimp-sketch-effect

    Work out a method to put those edges into a set, which determines one entity, probably by some intersection of curves/lines. Then make a quick center-of-mass computation for each entity, then watch the center-of-mass motion.

    Another idea, is to put a small IR heater on the flow, then watch the stuff on an IR camera, and rely on the heat absorption coefficients of the various objects to reveal themselves.

    Of course, all this depends on how fast the conveyor is moving, and whether Perl's computational power can keep up. If the ImageMagick Fourier analysis seems to give good results, you could switch to using PDL, which will give you the speed of Fortran.... very fast....even though it's controlled from Perl. PDL uses some image formats that are specifically designed for image analysis of outer space photos. If I were you, I would ask this question on the PDL maillist. They may have already a solution for your problem within PDL, and they are very helpful.

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh
      Thanks. That's some good stuff to go at.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://867401]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2016-02-11 10:03 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (366 votes), past polls