1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
\
.\" This man page was generated by the Netpbm tool 'makeman' from HTML source.
.\" Do not hand-hack it! If you have bug fixes or improvements, please find
.\" the corresponding HTML page on the Netpbm website, generate a patch
.\" against that, and send it to the Netpbm maintainer.
.TH "Pgmdeshadow User Manual" 0 "06 July 2006" "netpbm documentation"
.PP
.SH NAME
pgmdeshadow - Deshadow a PGM image
.UN synopsis
.SH SYNOPSIS
\fBpgmdeshadow\fP
[\fIpnmfile\fP]
.UN description
.SH DESCRIPTION
.PP
This program is part of
.BR "Netpbm" (1)\c
\&.
.PP
\fBpgmdeshadow\fP removes gray shadows from an image. This is
useful for an image containing text, such as a scanned book pages,
where a shadow typically appears near the book crease or near one side
of the image. \fBpgmdeshadow\fP recognizes a gray shadow as an area
of smoothly changing color, starting from the outer edges of the
image. The program uses a simple image reconstruction algorithm to
determine the local shadow gray level, then divides each pixel's gray
level by the local shadow gray level.
.PP
The algorithm is the "fast hybrid grayscale reruction"
algorithm from Luc Vincent, "Morphological Grayscale Reruction in
Image Analysis: Applications and Efficient Algorithms.
.UN options
.SH OPTIONS
.PP
None.
.UN references
.SH REFERENCES
.IP \(bu
Luc Vincent, "Morphological Grayscale Reconstruction in Image
Analysis: Applications and Efficient Algorithms," IEEE
Transactions on Image Processing, vol. 2, no. 2, April 1993,
pp. 176-201.
.UN seealso
.SH SEE ALSO
.BR "ppmshadow" (1)\c
\&,
.BR "pgm" (5)\c
\&
.UN history
.SH HISTORY
.PP
\fBpgmdeshadow\fP was added to Netpbm in Version 10.35 (August 2006).
.SH DOCUMENT SOURCE
This manual page was generated by the Netpbm tool 'makeman' from HTML
source. The master documentation is at
.IP
.B http://netpbm.sourceforge.net/doc/pgmdeshadow.html
.PP
|