Command line raw image processing tools in Linux?
- by ???
I'm wondering if there is any command to process raw images, for example,
cat raw1.img | raw2jpg -w 640 -h 480 -pitch 1024 -pixelformat R8G8B8
and more examples:
cat raw1.img raw2.img >y-merge.img
tr='transpose -pitch 1024 -depth 24'
cat <(cat raw1.img | $tr) <(cat raw2.img | $tr) | transpose -pitch 480 >x-merge.img
and something like this:
cat gamebitmap.dat | (
w=`readint32`
h=`readint32`
raw2png -w $w -h $h -depth 24 -pixelformat R8G8B8
) | png2svg -extractoutline -fuzzy -error 8 -smooth
Seems a little tricky, but is it possible? does ImageMagick support such raw formats?