Hello Ravindra,
the algorithm you are naming in your question does not exist. It may be that you intended to ask about the "Canny Algorithm" which is about edge detection and you can read some about it here:
http://en.wikipedia.org/wiki/Canny_edge_detector[
^]. If you want an implementation there is one here in Java that was released to the public:
http://www.tomgibara.com/computer-vision/canny-edge-detector[
^].
Otherwise seek help from your friend google by specifying theses search terms: Canny Algorithm Implementation
or maybe: Edge detection Algorithm Implementation
Happy coding,
-MRB