in reply to Sobel Operator Edge Detection

It works great, but do you really need the sub prototype? Removing the prototype works just as well.
#sub sobelEdgeDetection($); sub sobelEdgeDetection { }

Also, I don't know the exact differences, but the IM charcoal method produces similar output, but quicker. :-)

#!/usr/bin/perl use warnings; use strict; use Image::Magick; my $file = shift or die "need a file\n";; my $p = new Image::Magick; $p->Read($file); $p->Charcoal('0x1'); $p->Write($0.'.jpg'); exit;

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: Sobel Operator Edge Detection
by t-k (Novice) on Jul 10, 2012 at 11:08 UTC
    Hi zentara,
    There are multiple edge detection alghoritms, and since they return different outputs they are often implemented to compare and determine the most desired result. Image::Magick has it's own edge detection implementation but AFAIK it's not Sobel.
    Cheers