Description Usage Arguments Details
If values are double, then scaled to [0,255] or [0,65535] depending upon nbytes
1 |
image |
Integer values. Length must be nrow * ncol |
filename |
Filename to write to. |
nbytes |
Number of bytes per colour compoment. Default 1L. Otherwise 2 |
write_pnm
- write a vector of values to either a PGM or PPM file. If
the number of values supplied exactly matches the dimensions of the image, a PGM file
is written, otherwise a PPM file is written.
write_pnm_matrix
- write a 2D matrix of values as a PGM file.
write_pnm_array
- write a 3D array of values as a PPM file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.