This will only handle "raw" PGM files where the pixels are unsigned bytes
and will only read the first image in the file. This could easily be
extended to read PGM files with multiple images in them.
Linear Supertypes
AnyRef, Any
Ordering
Alphabetic
By inheritance
Inherited
PGMImageFile
AnyRef
Any
Hide All
Show all
Visibility
Public
All
Value Members
final def!=(arg0: Any): Boolean
Definition Classes
AnyRef → Any
final def##(): Int
Definition Classes
AnyRef → Any
final def==(arg0: Any): Boolean
Definition Classes
AnyRef → Any
defapply(filename: String): Array[Array[Float]]
Read the image in filename and return as a 2D array of pixels.
Reader of PGM (portable gray map) image files.
This will only handle "raw" PGM files where the pixels are unsigned bytes and will only read the first image in the file. This could easily be extended to read PGM files with multiple images in them.