By the following DM script, I can get the maximum value of the line profile with whole range
no sure to get the maximum value in the partial range? for example, the whole range is 0 to 20, but I only want the maximum value between X coordinates from 6 to 8; how to reach this?
any suggestions, thanks a lot!
number x0,y0,x,y, halfMax, max, i, val, delta, deltaMin, xmin, xmax
number d0, d1
// find the maximum Y coordinate and half maximum coordinate
image spc:=getFrontImage()
string xUnit = spc.ImageGetDimensionUnitString(0)
spc.getSize(d0,d1)
max=spc.max(x0,y0)
OKDialog("max is " +max +" "+ xUnit)