Pamtooctaveimg User Manual(0) Pamtooctaveimg User Manual(0) (NAME) pamtooctaveimg - Netpbm GNU Octave (SYNOPSIS) pamtooctaveimg [netpbmfile] (DESCRIPTION) Netpbm(1) . pamtooctaveimg Netpbm GNU Octave . Octave ( Octave << Octave>> ) Octave . : o (colormap) o {red, green, blue}. Octave ASCII Octave . Image Processing GNU Octave . pamtooctaveimg Octave . (OPTIONS) pamtooctaveimg libnetpbm ( Common Options .) (ARGUMENTS) netpbmfile PNM PAM - . netpbmfile . pamtooctaveimg . (EXAMPLES) % pamtooctaveimg myimage.ppm > myimage.img % octave > [img,map] = loadimage("myimage.img"); # (At this point, img is an X by Y matrix and map is a 3 by M matrix.) > imshow(img,map); # Displays img with colormap map > [r,g,b] = ind2rgb(img,map); # (r, g, and b are now each X by Y matrices of color levels [0 to 1].) > [newimg,newmap] = rgb2ind(r,b,g); # Swap the blue and green channels. > saveimage("newimage.ppm", newimg, "ppm", newmap); # Save as a PPM file. (NOTES) octavetopam . saveimage GNU Octave PPM . (HISTORY) pamtooctaveimg Netpbm 10.39 ( ) . (AUTHOR) (C) Scott Pakin scott+pbm@pakin.org . (SEE ALSO) octave(1), pam(1). (DOCUMENT SOURCE) 'makeman' Netpbm HTML . : http://netpbm.sourceforge.net/doc/pamtooctaveimg.html netpbm documentation 27 June 2007 Pamtooctaveimg User Manual(0)