Greg: Apply the filter after the formula in the algorithm; use the formula as you normally do:
if inregion(r1) then i1 else null and apply the filter you need after the formula. Just under that layer, use a new layer with the same characteristics (ie, a pseudo layer) to add the same image/band with no formula and filter. The filtered region will be displayed on top of the second layer (the entire image), and the result on the screen will be what you asked for (I think). Regards Manuel Alonso Earth Resource Mapping Blenheim House Crabtree Office Village Eversley Way, Egham Surrey TW20 8 RY, UK Telephone: +44 01784 430 691 Facsimile: +44 01784 430 692 -----Original Message----- From: Greg Reinecke [mailto:[EMAIL PROTECTED]] Sent: 16 October 2001 13:51 To: [EMAIL PROTECTED] Subject: Applying a filter within a formula to a region Hello List: Not sure if I asked this prior but does anyone know the syntax to apply a 3x3 filter within a formula. I have small areas within a height .ERS file that I would like to define a region around and apply the filter, smoothing these anomalies out. Something like "if (inregion(r1)) then filter else i1". I don't want to cut the region out, filter it and reapply it to the original file. This causes an edge to show when I put the region cut-out back in. As usual any input is appreciated. Greg Reinecke GDM ----------------------------------------------------------- To make changes to your subscription, please visit our website, http://www.ermapper.com/technicl/ermapperl/index.htm ----------------------------------------------------------- To make changes to your subscription, please visit our website, http://www.ermapper.com/technicl/ermapperl/index.htm
