|
NAMElpsmooth - smooth an image preserving thin lines (v1.2)SYNOPSISlpsmooth [-options] in_file | - out_file | -DESCRIPTIONlpsmooth reads a portable graymap(5) or a portable pixmap(5) as input, smooth the image slightly preserving thin lines, and produces a portable graymap/pixmap as output.If -p 3 (default), lpsmooth smooths the image along thin lines, whose thickness is 1 pixel, ensuring that no line is blurred in the direction orthogonal to the line locally. A 3x3 mask is put on every pixel in the image. lpsmooth finds the pixels whose color (or graylevel) is 1st through (N-1)th similar to that of the central pixel, where N is given by the option "-p N." The color of the central pixel is turned into the average color of the N pixels including the central pixel. Color difference is measured by the Euclidean distance in the RGB color space. If the string "-" is passed instead of in_file, lpsmooth reads the image from standard input. If the string "-" is passed instead of out_file, lpsmooth writes the image to standard output. OPTIONS
NOTESEven if -p 3, line segments may get shorter by at most 2 pixels, because the two pixels on the edges of a line segment are blurred slightly.For the color image processing, the color similarity is measured by the Euclidian distance in RGB color space. SEE ALSOpgm(5), ppm(5)REFERENCESL.S. Davis and A. Rosenfeld, "Noise Cleaning by Iterated Local Averaging," IEEE Trans. SMC, vol.SMC-8, No.9, pp.705-710, 1978.AUTHORCopyright (C) 2000-2002 Hideaki GotoE-Mail: hgot@rd.isc.tohoku.ac.jp, hgot@aso.ecei.tohoku.ac.jp
Visit the GSP FreeBSD Man Page Interface. |