//Created by: T. Hengl (hengl@itc.nl) //Input parameters: %1-%8 memberships, %9 - domain where the class names and colours are defined //Purpose: Calculates the MB class having the highest MB value maxMB_01=max(%1, %2, %3) maxMB_02=max(%4, %5, %6) maxMB_03=max(%7, %8) //max1MB - maximum membership value per pixel max1MB=max(maxMB_01,maxMB_02,maxMB_03) calc max1MB.mpr // Choose the representation color for that class Simple_RGB{domain=%9}=iff(max1MB=%1, "c1", iff(max1MB=%2, "c2", iff(max1MB=%3, "c3", iff(max1MB=%4, "c4", iff(max1MB=%5, "c5", iff(max1MB=%6, "ext", ?))))) ) setdom Simple_RGB.mpr %9 [- force] calc Simple_RGB.mpr -force breakdep Simple_RGB -force setdescr Simple_RGB.mpr Legend for the colour map as highest MB del maxMB_0?.mpr -force