help in combining NetPBM functions

dandiz

Joined: 2006-06-07
Posts: 1
Posted: Wed, 2006-06-07 14:32

I am newbie programmer and would like to combine certain netpbm
functions for image detection. Can I do that? I tried picking out
certain headers and after segregating required .h files, it doesnt seem to
work because it searches some hidden .o files..

I need to use the following functions on a PPM image:

1. ppmnorm image
2. convert ppm to pgm
3. perform edge detect using pamedge.
4. reduce depth of image to 1 as max value by using pamdepth..
5. fill with 0s (white) the shape of the biggest detected edge shape and
disregard small shapes.
6. get centroid of the object and output (x,y) location.

Need help asap.. we are really desperate :(
Kind hearts hear our call :)

Thanks a lot!

Dan Dizon
undergraduate student from the Philippines