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()#

Purges the currently saved values (not the database).

plot(fig=None)#

Plots the current database of histograms

Parameters:
figNone of HistogramTilePlot

If given updates the plot.

refresh(overwrite, given_pixels=None)#

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

remove()#

Removes this strategy from its SAMFire

update(ind, isgood)#

Updates 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)#

Returns the saved most frequent values that should be used for prediction

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

Bases: GlobalStrategy

clean()#

Purges the currently saved values (not the database).

plot(fig=None)#

Plots the current database of histograms

Parameters:
figNone of HistogramTilePlot

If given updates the plot.

refresh(overwrite, given_pixels=None)#

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

remove()#

Removes this strategy from its SAMFire

update(ind, isgood)#

Updates 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)#

Returns the saved most frequent values that should be used for prediction