For given width, height, magn, how can I obtain the #pixel spacing? For a square image it seems 4/#magn/#width, but for other aspect ratios I can't figure it out.

For given width, height, magn, how can I obtain the #pixel spacing? For a square image it seems 4/#magn/#width, but for other aspect ratios I can't figure it out.
 
0
reply

After digging into one of my old formulas, I found this. Check it out and see if it's right:

if (4 * #height < 3 * #width)
    pixeldim = 3/#magn/#height
else
    pixeldim = 4/#magn/#width
endif
After digging into one of my old formulas, I found this. Check it out and see if it&#039;s right: ```` if (4 * #height &lt; 3 * #width) pixeldim = 3/#magn/#height else pixeldim = 4/#magn/#width endif ````
 
0
reply
89
views
2
replies
2
followers
live preview
Enter at least 10 characters.
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft