Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/pyFAI/goniometer.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,11 +672,13 @@ def get_position(self):
"""This method is in charge of calculating the motor position from metadata/label/..."""
return self.pos_function(self.metadata)

def extract_cp(self, max_rings=None, pts_per_deg=1.0, Imin=0):
def extract_cp(self, method="massif", max_rings=None, pts_per_deg=1.0, Imin=0):
Comment thread
EdgarGF93 marked this conversation as resolved.
Outdated
"""Performs an automatic keypoint extraction and update the geometry refinement part

:param method: method to use for keypoint extraction, default is "massif"
:param max_ring: extract at most N rings from the image
:param pts_per_deg: number of control points per azimuthal degree (increase for better precision)
Comment thread
EdgarGF93 marked this conversation as resolved.
Outdated
:param Imin: minimum intensity for a pixel to be considered control point
"""
if self.image is None:
raise RuntimeError("To perform control point extraction, a data image must be provided: pyFAI.goniometer.SingleGeometry(image=...)")
Comment thread
EdgarGF93 marked this conversation as resolved.
Expand Down
Loading