Returning an image in a function
I am writing a function that takes in an image, modifies it, and returns the modified image.
Keep a oval annotation as a circle by using dm-script
If I manually change the size of the circle by using dm-script, is that possible to lock the center of the circle to center of FFT image, and also keep it as a circle, instead of ellipse
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.