}

fflush( outfile ); fclose ( outfile );

}

}

MPI_Finalize(); return 0;

}

A-2.1 File format

The code contains the logic to read and write images in .pgm format. This “Portable Gray Map” format uses ASCII characters for encoding pixel intensities, as illustrated by the example below:

P2

88

160160 160 137 137 160 170 160

160160 160 137 160 160 160 108

160160 160 137 160 137 160 160

160160 137 160 150 137 160 106

160160 137 160 140 137 160 160

160137 160 160 120 137 137 137

160137 160 90 160 137 160 160

160160 160 160 160 160 160 130

original

P2

88

168168 168 122 122 168 188 168

168168 168 122 168 168 168 64

168168 168 122 168 122 168 168

168168 122 168 148 122 168 60

168168 122 168 128 122 168 168

168122 168 168 88 122 122 122

168122 168 28 168 122 168 168

168168 168 168 168 168 168 108

enhanced contrast

Scali MPI Connect Release 4.4 Users Guide

53

Page 65
Image 65
Escali 4.4 manual File format, Original