Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Most Important and urgent_clipping out a portion of image
Hello everyone, i am working on a cloud masking code. My task is to remove a portion of image(color table), apply and run the entire code and finally reinsert it back in the image. Please help me in doing this.I have been facing this problem severely and unable to resolve it. Please kindly help me out in resolving this problem. Note : Image dimensions - 512 * 512 the part which has to be removed initially and inserted finally has coordinates : x axis-70 to 230, y axis-420 to 460 Thanks in advance -Kumar
Re: Most Important and urgent_clipping out a portion of image
Not sure if I fully understand what you need, but how about this, assuming img is the image in question and is 512x512: subImg = img[70:230, 420:460] ;extract the part of the image you're interested in modImg = RunSomeCode(subImg) ;call a function that modifies the extract portion of the image img[70:230, 420:460] = modImg ;put the modified portion back This assumes your "apply and run the entire code" works on just the extracted portion of the image.