Escali 4.4 Network Router User Manual


 
Scali MPI Connect Release 4.4 Users Guide 53
}
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
8 8
255
160 160 160 137 137 160 170 160
160 160 160 137 160 160 160 108
160 160 160 137 160 137 160 160
160 160 137 160 150 137 160 106
160 160 137 160 140 137 160 160
160 137 160 160 120 137 137 137
160 137 160 90 160 137 160 160
160 160 160 160 160 160 160 130
original
P2
8 8
255
168 168 168 122 122 168 188 168
168 168 168 122 168 168 168 64
168 168 168 122 168 122 168 168
168 168 122 168 148 122 168 60
168 168 122 168 128 122 168 168
168 122 168 168 88 122 122 122
168 122 168 28 168 122 168 168
168 168 168 168 168 168 168 108
enhanced contrast