class StackParams(BaseModel): (source)
A class for holding for 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 | autofocus |
Undocumented |
| Class Variable | backlash |
Distance (in steps) to overshoot a move and then undo, to account for backlash |
| Class Variable | images |
Undocumented |
| Class Variable | images |
Undocumented |
| 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 |
Undocumented |
| Class Variable | settling |
Time (in seconds) between moving and capturing an image |
| Class Variable | stack |
Undocumented |
| 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. |
@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.
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.