class SmartStackParams(StackParams): (source)
A class for holding smart stack parameters, and returning computed ones.
| Class Method | check |
Verify that the images to save parameter is positive and odd. |
| Class Method | check |
Verify that the images to test parameter matches various constraints. |
| Method | check |
Ensure the number of images to save isn't more than the minimum tested. |
| Method | slice |
Return the slice of images to save given the index of the sharpest image. |
| Class Variable | check |
Whether to check the number of turning points in the sharpnesses of the images in the stack is exactly 1. (May fail with thick samples) |
| Class Variable | img |
How far below (in factors of stack_dz) the estimated optimal starting position to begin the stack. Better to start slightly too low and require many images, rather than too high and needing to autofocus and restart the stack... |
| Class Variable | max |
Maximum number of times to attempt fast stack |
| Class Variable | min |
Undocumented |
| Class Variable | save |
Whether to save an image even if no focus was found. |
| Class Variable | stack |
How many images can be appended to the stack after the predicted peak to test for focus before assuming the focus was passed, and restarting the stack |
| Property | max |
The maximum number of images that will be captured and tested in a stack. |
| Property | stack |
The range of the z stack, in steps. |
| Property | steps |
The distance to deliberately undershoot the estimated optimal starting point. |
Inherited from StackParams:
| Class Variable | images |
Undocumented |
| Class Variable | settling |
Time (in seconds) between moving and capturing an image |
| Class Variable | stack |
Undocumented |
@classmethod
int) -> int:
(source)
¶
Verify that the images to save parameter is positive and odd.
@classmethod
int) -> int:
(source)
¶
Verify that the images to test parameter matches various constraints.
Whether to check the number of turning points in the sharpnesses of the images in the stack is exactly 1. (May fail with thick samples)
How far below (in factors of stack_dz) the estimated optimal starting position to begin the stack. Better to start slightly too low and require many images, rather than too high and needing to autofocus and restart the stack
How many images can be appended to the stack after the predicted peak to test for focus before assuming the focus was passed, and restarting the stack
The maximum number of images that will be captured and tested in a stack.
This is 15 images more then the minimum number that are captured.