comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Most Important and urgent_clipping out a portion of image
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Most Important and urgent_clipping out a portion of image [message #85143] Tue, 09 July 2013 13:37 Go to next message
Kumar is currently offline  Kumar
Messages: 1
Registered: July 2013
Junior Member
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 [message #85144 is a reply to message #85143] Tue, 09 July 2013 14:14 Go to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: CURVEFIT function
Next Topic: IDL beginner-MPFIT questions

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:07:44 PDT 2025

Total time taken to generate the page: 0.00337 seconds