program included edge detection algorithms this program doesn t detect edges with compass operators and a laplacian operator it should output raw grey scale images with edges the output doesn t look like edges at all in novicee terms how do i correct the errors any improvements are welcome i ll even accept your corrected code if i convolve the input image with a digital gaussian by to remove noise will i get an improvement with the laplacian types of edge detection include stdio h include math h define imagewidth define imageheight unsigned char input image imageheight imagewidth unsigned char angles wanted imageheight imagewidth unsigned char magnitude image imageheight imagewidth int laplace op int compass op int compass op int compass op int compass op int compass op int compass op int compass op int compass op void compass row col int row col int value int op rows op cols int compass compass compass compass int compass compass compass compass compass compass compass compass compass compass compass compass for op rows op rows op rows for op cols op cols op cols if row op rows col op cols compass int input image row op rows col op cols compass op op rows op cols compass int input image row op rows col op cols compass op op rows op cols compass int input image row op rows col op cols compass op op rows op cols compass int input image row op rows col op cols compass op op rows op cols compass int input image row op rows col op cols compass op op rows op cols compass int input image row op rows col op cols compass op op rows op cols compass int input image row op rows col op cols compass op op rows op cols compass int input image row op rows col op cols compass op op rows op cols if compass compass value compass else value compass if value compass value compass if value compass value compass if value compass value compass if value compass value compass if value compass value compass if value compass value compass magnitude image row col char value void laplace row col int row col int op rows op cols magnitude image row col for op rows op rows op rows for op cols op cols op cols if row op rows col op cols magnitude image row col char int magnitude image row col int input image row op rows col op cols laplace op op rows op cols main file original image fp file laplace mag fp laplace mag fp laplace mag fp file compass mag fp int row col algo count original image fp fopen input image rb laplace mag fp fopen laplace magnitude wb compass mag fp fopen compass magnitude wb fread unsigned char input image sizeof unsigned char imageheight imagewidth original image fp for algo count algo count algo count for row row imageheight row for col col imagewidth col if algo count laplace row col else compass row col if algo count fwrite magnitude image sizeof char imageheight imagewidth laplace mag fp else fwrite magnitude image sizeof char imageheight imagewidth compass mag fp for a lot of au music ftp sounds sdsu edu then cat file au dev audio ub library catalog telnet bison acsu buffalo edu when in doubt ask xarchie xgopher or xwais
