Click or drag to resize

BaseImageProcessingVariationCapableElement Class

This is the base class for all image processing elements that are capable of varying parameters. This process can be controlled in a loop for semi-automatic finding of useful parameter values. Not all properties defined here are used in all image processing elements. E.g. the LineThickness is used only in the searchers.
Inheritance Hierarchy
SystemObject
  RAYLASE.Marker.PluginBasePlugin
    RAYLASE.Marker.JobElement.ImageProcessingBaseImageProcessingElement
      RAYLASE.Marker.JobElement.ImageProcessingBaseImageProcessingVariationCapableElement
        RAYLASE.Marker.JobElement.ImageProcessingBaseImageProcessingSearcherElement

Namespace: RAYLASE.Marker.JobElement.ImageProcessing
Assembly: RAYLASE.Marker.JobElement (in RAYLASE.Marker.JobElement.dll) Version: 2.19.0
Syntax
C#
public abstract class BaseImageProcessingVariationCapableElement : BaseImageProcessingElement

The BaseImageProcessingVariationCapableElement type exposes the following members.

Constructors
 NameDescription
Protected methodBaseImageProcessingVariationCapableElement This is the base class for all image processing elements that are capable of varying parameters. This process can be controlled in a loop for semi-automatic finding of useful parameter values. Not all properties defined here are used in all image processing elements. E.g. the LineThickness is used only in the searchers.
Top
Properties
 NameDescription
Public propertyAreLoopPermutations If testing parameters in a loop while executing is enabled, this parameter controls if all possible combinations should be tried.
Protected propertyAreParametersExpanded If true the expander of the parameters in the GUI is expanded. Ignorable in case the API is used.
Protected propertyAreVariationsExpanded If true the expander of the failure handling in the GUI is expanded. Ignorable in case the API is used.
Protected propertyConfigurationManager
(Inherited from BasePlugin)
Public propertyElapsedTimeMsg A notification string containing the time the element's execution has lasted.
(Inherited from BaseImageProcessingElement)
Public propertyExecutionStartPointIndex When testing parameters (especially in a loop), this parameter controls where to start the execution. Relevant only in the GUI.
Public propertyImageProcessingAutomation The image processing automation object this image processing element belongs to.
(Inherited from BaseImageProcessingElement)
Public propertyImageProcessingAutomationView The GUI of the automation object. Only needed in case used by the GUI for showing some kind of progress. null in case used by the API.
(Inherited from BaseImageProcessingElement)
Public propertyIsAborted Is set to true if the user aborts the execution of this element.
(Inherited from BaseImageProcessingElement)
Public propertyIsAdvancedMode If true, in an image processing dialog the advanced parameters will be shown.
(Inherited from BaseImageProcessingElement)
Protected propertyIsAutoTest If true the testing is done immediately when changing a parameter. Ignorable in case the API is used.
Public propertyIsAutoTestWhenOpened If true the image processing of this object is started immediately when the dialog is opened.
(Inherited from BaseImageProcessingElement)
Public propertyIsExecutionStartedByGui If true the appropriate GUI elements are updated to show the progress in case of looping.
(Inherited from BaseImageProcessingElement)
Public propertyIsExecutionStartedByOwnGui Is set to true only if the execution is started by the own GUI dialog, not by the image processing dialog.
(Inherited from BaseImageProcessingElement)
Public propertyIsOk Flag to indicate if the search has been successful.
Public propertyIsSaveResultImage If true, the final result image of an image processing job element is saved if this mechanism is activated in StoreImages.
(Inherited from BaseImageProcessingElement)
Public propertyIsSettingsDialogOpen Is true if the settings dialog is currently open.
(Inherited from BaseImageProcessingElement)
Public propertyIsSingleObjectFound Is true if only a single object is found, rather than no object or several objects.
Protected propertyIsTestingExpanded If true the expander of the testing controls in the GUI is expanded. Ignorable in case the API is used.
Public propertyIsTimedOut When the TimeoutTime is exceeded while executing the job element this flag is set to true.
(Inherited from BaseImageProcessingElement)
Protected propertyLogDirectory The directory of the log file.
(Inherited from BasePlugin)
Public propertyLogger The common logger.
(Inherited from BasePlugin)
Public propertyNameInGui This string is shown in the GUI in the list of available elements.
(Inherited from BaseImageProcessingElement)
Public propertyPluginMetadata The metadata of the plugin instances. If the concrete class inherits from the BasePluginSetup interface, the metadata of the BasePluginSetup will be prefilled.
(Inherited from BasePlugin)
Public propertyShouldLoop Only if true the looping with variation of the parameters given in VariationParameters will be done.
Public propertyTimeoutTime If this time (in milliseconds) is exceeded while executing the job element, the execution will be aborted and the property IsTimedOut will be set to true.
(Inherited from BaseImageProcessingElement)
Public propertyVariationParameters The list of all parameters that should be varied during looping.
Top
Methods
 NameDescription
Public methodAreAllLoopsFinished Loops through all variation parameters defined in this searcher and checks if all parameter's loop counters have reached their end values.
Public methodClearSettingView Cleans up the setting view of an image processing element when its settings dialog is closed.
(Inherited from BaseImageProcessingElement)
Public methodCreateVariationParameter Creates the variation parameter with the given property name and fills it with the values of the relevant properties of this image processing element. Which properties are filled is defined in the list in PropertyNameToLabelMap.
Public methodDispose
(Inherited from BasePlugin)
Protected methodDispose(Boolean)
(Inherited from BasePlugin)
Public methodDisposeUI
(Inherited from BaseImageProcessingElement)
Protected methodDoDisposeUI
(Inherited from BasePlugin)
Public methodDoExecute Does the native execution of an object; i. e. the execution is done directly and not triggered by the image processing object; no thread is started.
(Inherited from BaseImageProcessingElement)
Protected methodDoExecuteWithLooping Executes the image processing element with looping over the variation parameters.
Protected methodDoExecuteWithoutLooping Executes the image processing element, but without variation looping.
Protected methodDoShowUI Shows the specific UI embedded in the plug-in instance. The content will be wrapped by a preset view.
(Inherited from BasePlugin)
Protected methodDoShowUICallback Invokes the callback that can be used when the DoShowUI method is done.
(Inherited from BasePlugin)
Public methodEnDisableTimeout Enables and disables the timeout feature in this image processing element if available.
(Inherited from BaseImageProcessingElement)
Public methodExecute Does the image processing. Method is used as delegate method for ImageProcessing.ExecuteImgProcElWithTimeout() and may be started in an own thread to allow aborting in case of a timeout.
(Overrides BaseImageProcessingElementExecute(CancellationToken))
Protected methodGetModel Gets the data model of the given view. If the view is not derived from IIImageProcessingModelView, the model is fetched from the image processing element itself.
Public methodGetSettingsFromView Retrieves possibly changed data from an image processing job element's Settings dialog.
(Overrides BaseImageProcessingElementGetSettingsFromView(IImageProcessingView, Boolean))
Public methodGetVariationProperties Creates a dictionary of property names of all the currently (according to advanced mode) usable (and therefore visible) parameters. Used to show the usable parameters in the GUI's combo box to select them for looping.
Public methodInitialize Plug-in specific initialization can be done here if necessary.
(Inherited from BasePlugin)
Public methodLimitInputValues Checks all input values on exceeding ranges. If any range is exceeded, the value is set to the min. or max. allowed value.
(Inherited from BaseImageProcessingElement)
Protected methodResetParameter Resets the given looping parameter to its base value as defined in the variation parameter list, and sets the counter to 0.
Public methodResetVariationParameter Resets the given variation parameter back to its base value. The infrastructure of BaseImageProcessingSearcherElement.VaryParameterSequential() is used; the counter is patched to achieve setting the value.
Public methodResetVariationsCounters Resets the counter of all variation parameters of the given model (it is in the view) and of the variation parameters in the model which is referenced in the variation parameter itself. Furthermore the current value is set to the base value.
Protected methodRestoreInputData Resets the parameters to the beforehand saved input data values. Called when the Cancel button is pressed.
(Overrides BaseImageProcessingElementRestoreInputData)
Protected methodSaveInputData Saves some input data when the dialog opens to set them back in case the Cancel button is pressed.
(Overrides BaseImageProcessingElementSaveInputData)
Public methodShowUI
(Inherited from BaseImageProcessingElement)
Public methodShowUICallback
(Inherited from BaseImageProcessingElement)
Public methodShowUICancelCallback
(Inherited from BaseImageProcessingElement)
Protected methodStoreOrResetVariationParameters Copies the data model of an image processing element to a backup memory or restores it from there. If true the property is put into the backup, if false it is recreated from there.
Public methodToString Returns a string representation in the form "shortLabel (NameInGui)".
(Inherited from BaseImageProcessingElement)
Public methodUpdateUsedVariationParameters Fills the list of currently used variation parameters with the values derived from this image processing element.
Public methodUpdateUsedVariationParametersEditableState Updates in a model the editable state a variation parameters. This is used to gray out parameters of "foreign" elements. E.g. the filter parameters are grayed in the circle searcher dialog.
Public methodUpdateVariationParameterInView Updates in the variation parameter table of the given view the variation parameter with the given property name and the possibly new base value.
Public methodUpdateVariationParameters Updates all the looping parameters in the given list to the current values in the image processing object. Necessary because it can happen that these are not the ones that are demanded during looping due to range restrictions in OpenCV; these restrictions are checked and corrected while an image processing object is executed.
Public methodVaryParameter Changes the property of the image processing object that is referenced by the given variation parameter in its PropertyName property by the value given in its Delta property. There may be different situations: - If the image processing element is open in the GUI we want to change the edit fields in it, i. e. in guiView. The values will be transferred later into the image processing element before execution. - If the image processing element is not open in the GUI we must modify the properties directly in the image processing element. This is the case either because the execution is done via API, or because it is e. g. a PictureFilter but the CircleSearcher settings dialog is open in the GUI.
Public methodVaryParameterPermutational Increments or decrements the first parameter that is found whose counter has not reached the wanted tryCount. The search is done permutationally, i.e. a "lower" parameter's counter is reset as soon a "higher" parameter has reached its max. counter value.
Public methodVaryParameterSequential Increments or decrements the first parameter that is found whose counter has not reached the wanted tryCount.
Top
Fields
 NameDescription
Protected field_stopwatch
(Inherited from BaseImageProcessingElement)
Top
See Also