Relative Content

Tag Archive for dm-script

Realfield widget with up and down arrows

It seems that in the old version of GMS, the realfield widget has up and down arrows to adjust the realfield value (first photo). But in GMS 3.4.3, it doesn’t have this function in the scirpt. But in GMS’s own GUI (MSA Analysis Preference), it still has these arrows (second photo). Is there any un-documented command which can create this kind of realfield widget?

What’s the center of FFT image in dm-script

I’d like to draw a circle in FFT image, and the circle center is image center. The first issue I faced is what’s the center of this FFT image. If I used the code below to get the center of FFT image, let’s assume 4096*4096, the img_origin is 2048.5. Since the image coordinate starts from 0,0, why it’s not 2047.5? Even if the image coordinate starts from 1,1, it should be 2048.