3 ms·
I remember running across the NetPBM format when I was looking at some of the images that are stored in jwz's folder on the CMU AI repository. There's somethin
by sabalaba 11y ago
I remember running across the NetPBM format when I was looking at some of the images that are stored in jwz's folder on the CMU AI repository. There's something very nice about storing a bitmap in pure text. (AWK image processing comes to mind.)
http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/lisp/code/impdep/explorer/ http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/l...
- jd3 11y agowow, nice find. I've never come across any of jwz's actual academic/LISP work in the wild. very cool.
- dwc 11y agoOf course you could use awk or anything else, but for most tasks there are already transforms in the netpbm tools that work well. In addition to being in text format, the meta info always comes first, which facilitates streaming. That in turn means that if you pipe together four transforms you'll use four cores without even trying.
- theoh 11y agoSee also the NRRD format which is a generalisation to higher dimensions. http://teem.sourceforge.net/nrrd/ http://teem.sourceforge.net/nrrd/