hyperspy.api.samfire.global_strategies#

hyperspy.api.samfire.global_strategies.GlobalStrategy(name)

A SAMFire strategy that operates in "parameter space" - i.e the pixel positions are not important, and only parameter value distributions are segmented to be used as starting point estimators.

hyperspy.api.samfire.global_strategies.HistogramStrategy([bins])

class hyperspy.api.samfire.global_strategies.GlobalStrategy(name)#

Bases: SamfireStrategy

A SAMFire strategy that operates in “parameter space” - i.e the pixel positions are not important, and only parameter value distributions are segmented to be used as starting point estimators.

clean()#

Purge the currently saved values (not the database).

plot(fig=None)#

Plot the current database of histograms.

Parameters:
figNone of HistogramTilePlot

If given updates the plot.

refresh(overwrite, given_pixels=None)#

Refresh the database (i.e. constructs it again from scratch).

remove()#

Remove this strategy from its SAMFire.

update(ind, isgood)#

Update the database and marker with the given pixel results.

Parameters:
indtuple

The index with new results.

isgoodbool

If the fit was successful.

values(ind=None)#

Return the saved most frequent values that should be used for prediction.

class hyperspy.api.samfire.global_strategies.HistogramStrategy(bins='fd')#

Bases: GlobalStrategy

clean()#

Purge the currently saved values (not the database).

plot(fig=None)#

Plot the current database of histograms.

Parameters:
figNone of HistogramTilePlot

If given updates the plot.

refresh(overwrite, given_pixels=None)#

Refresh the database (i.e. constructs it again from scratch).

remove()#

Remove this strategy from its SAMFire.

update(ind, isgood)#

Update the database and marker with the given pixel results.

Parameters:
indtuple

The index with new results.

isgoodbool

If the fit was successful.

values(ind=None)#

Return the saved most frequent values that should be used for prediction.