There is a function to get the median from number expressions in DM. For example:
// number expression
number x=3, y=5, z=10;
number num = median(x, pi(), y,z);
OKDialog( "num = " + num);
However, this function does not work for image expression :
// image expression
image img := exprsize(5, icol);
number num = img.median();
OKDialog( "num = " + num );
Any solution? Thanks.