9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] imgfs
@ 2009-02-23  0:04 mattmobile
  0 siblings, 0 replies; only message in thread
From: mattmobile @ 2009-02-23  0:04 UTC (permalink / raw)
  To: 9fans

I did some work on /n/sources/contrib/maht/imgfs
stripped out a load of stuff and brought import_ppm inside rather than an external tool

imgfs
echo glenda > /n/imgfs/new
echo import ppm /n/sources/contrib/maht/imgfs/glenda.ppm > /n/imgfs/images/glenda/ctrl

ls -l  /n/imgfs/images/glenda/*

--rw-rw-rw- M 567 maht maht     0 Feb 22 18:54 /n/imgfs/images/glenda/alpha
--rw-rw-rw- M 567 maht maht 10000 Feb 22 18:54 /n/imgfs/images/glenda/blue
--rw-rw-rw- M 567 maht maht     0 Feb 22 18:54 /n/imgfs/images/glenda/ctrl
--rw-rw-rw- M 567 maht maht 10000 Feb 22 18:54 /n/imgfs/images/glenda/green
--rw-rw-rw- M 567 maht maht     3 Feb 22 18:54 /n/imgfs/images/glenda/height
--r--r--r-- M 567 maht maht 30021 Feb 22 18:54 /n/imgfs/images/glenda/ppm
--rw-rw-rw- M 567 maht maht 10000 Feb 22 18:54 /n/imgfs/images/glenda/red
--rw-rw-rw- M 567 maht maht     0 Feb 22 18:54 /n/imgfs/images/glenda/select
--rw-rw-rw- M 567 maht maht     3 Feb 22 18:54 /n/imgfs/images/glenda/width

convolute works like this

echo convolute red 3x3 1.1 1.2 1.3 2.1 2.2 2.3 3.1 3.2 3.3 >  /n/imgfs/images/glenda/ctrl

and that's as far as I got,
or rather I then started writing rc scripts to make gaussian convolution kernels

page ppm

works if you want to see your results
writing to red green and blue changes the ppm

matt



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-23  0:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-23  0:04 [9fans] imgfs mattmobile

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).