Hello,
I have TIFF images that use the sRGB color profile. I want to extract the first three bands from the image. I can do this using the nip2 GUI. However, as I get new images, I want to process all of them with the same operation. I haven't been able to figure out how to write a batch script that I can run without the nip2 GUI to achieve this. My first attempt at this based on one of the example I found was as follows :
main
= clip2fmt infile.format (infile), argc == 2
= error "usage: infile -o outfile
{
infile = Image_file argv?1;
outfile = extract_bands 0 3 infile;
}
Any pointers on how to proceed are greatly appreciated. Thanks !
|