Command line raw image processing tools in Linux?
Posted
by
???
on Super User
See other posts from Super User
or by ???
Published on 2010-12-22T07:17:52Z
Indexed on
2010/12/22
7:55 UTC
Read the original article
Hit count: 310
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?
© Super User or respective owner