<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I hope someone has some experience with
this:</font>
<br>
<br><font size=2 face="sans-serif">I am classifying pixel values from a
tiff file (converted from asc). The values are in range 0-100 and I need
to clasify them in a following manner (don't bother the COLOR values :-):</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; CLASS</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; EXPRESSION ([pixel] &lt;=
35)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; NAME '35dB(A)'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; COLOR 255 255 255</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; TEMPLATE &quot;void&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; END # Class</font>
<br><font size=2 face="sans-serif">&nbsp; CLASS</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; EXPRESSION ([pixel] &gt;
35 and [pixel] &lt;=40)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; NAME '40dB(A)'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; COLOR 255 255 255</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; TEMPLATE &quot;void&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; END # Class</font>
<br><font size=2 face="sans-serif">&nbsp; CLASS</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; EXPRESSION ([pixel] &gt;
40 and [pixel] &lt;=45)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; NAME '45dB(A)'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; COLOR 255 255 255</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; TEMPLATE &quot;void&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; END # Class</font>
<br><font size=2 face="sans-serif">&nbsp; CLASS</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; EXPRESSION ([pixel] &gt;
45 and [pixel] &lt;=50)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; NAME '50dB(A)'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; COLOR 255 255 255</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; TEMPLATE &quot;void&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; END # Class</font>
<br><font size=2 face="sans-serif">&nbsp; CLASS</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; EXPRESSION ([pixel] &gt;
50 and [pixel] &lt;=55)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; NAME '55dB(A)'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; COLOR 255 255 255</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; TEMPLATE &quot;void&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; END # Class</font>
<br><font size=2 face="sans-serif">&nbsp; CLASS</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; EXPRESSION ([pixel] &gt;
55 and [pixel] &lt;=60)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; NAME '60dB(A)'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; COLOR 255 255 255</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; TEMPLATE &quot;void&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; END # Class</font>
<br><font size=2 face="sans-serif">&nbsp; CLASS</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; EXPRESSION ([pixel] &gt;
60 and [pixel] &lt;=65)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; NAME '65dB(A)'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; COLOR 255 255 255</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; TEMPLATE &quot;void&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; END # Class</font>
<br><font size=2 face="sans-serif">&nbsp; CLASS</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; EXPRESSION ([pixel] &gt;
65 and [pixel] &lt;=70)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; NAME '70dB(A)'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; COLOR 255 255 255</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; TEMPLATE &quot;void&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; END # Class</font>
<br><font size=2 face="sans-serif">&nbsp; CLASS</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; EXPRESSION ([pixel] &gt;
70 and [pixel] &lt;=75)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; NAME '75dB(A)'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; COLOR 255 255 255</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; TEMPLATE &quot;void&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; END # Class</font>
<br><font size=2 face="sans-serif">&nbsp; CLASS</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; EXPRESSION ([pixel] &gt;
75 and [pixel] &lt;=80)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; NAME '80dB(A)'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; COLOR 255 255 255</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; TEMPLATE &quot;void&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; END # Class</font>
<br><font size=2 face="sans-serif">&nbsp; CLASS</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; EXPRESSION ([pixel] &gt;
80)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; NAME '&gt;80dB(A)'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; COLOR 255 255 255</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; TEMPLATE &quot;void&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; END # Class</font>
<br>
<br>
<br><font size=2 face="sans-serif">Since this can be slow, can I make some
performance improvements by using PROCESSING SCALE=min,max and SCALE_BUCKETS
parameters? I have tried something like:</font>
<br>
<br><font size=2 face="sans-serif">PROCESSING &quot;SCALE=1,100&quot;</font>
<br><font size=2 face="sans-serif">PROCESSING &quot;SCALE_BUCKETS=20&quot;</font>
<br>
<br><font size=2 face="sans-serif">but I didn't really see much difference.
Is this OK? Is it enough anyway to add those two statements and leave the
classes intact?</font>
<br>
<br><font size=2 face="sans-serif">thanks very much</font>
<br>
<br><font size=2 face="sans-serif">regards, dejan</font>