Into

Modules

Documentation

classPiiColorModelMatcher

#include <PiiColorModelMatcher.h>

An operation that converts a color image into an intensity map.

Inherits PiiDefaultOperation

Description

Pixel values in the intensity map are proportional to the likelihood of that pixel belonging to a predefined color model.

Inputs

imagethe input color image. Any color image type.
modelan image out of which the color model is to be derived. Any color image type.

Outputs

imagean intensity map image indicating the likelihood of each pixel belonging to the model (PiiMatrix<float>) or a thresholded image (PiiMatrix<unsigned char>), if matchingThreshold is non-zero.

Properties

double

matchingThreshold description

Constructors and destructor

Public member functions

double
void
(
  • double matchingThreshold
)

Protected member functions

virtual void

Executes one round of processing.

Property details

  • double matchingThreshold

    [read, write]

    matchingThreshold description

Function details

  • PiiColorModelMatcher

    ()
  • double matchingThreshold

    ()
  • void setMatchingThreshold

    (
    • double matchingThreshold
    )
  • virtual void process

    ()
    [protected, virtual]

    Executes one round of processing.

    This function is invoked by the processor if the necessary preconditions for a new processing round are met. This function does all the necessary calculations to create output objects and sends them to output sockets.

    Calls to process(), syncEvent(), and setProperty() are synchronized and cannot occur simultaneously. PiiDefaultOperation ensures this by locking processLock() for reading before calling process().

    Note: With time-consuming operations, one should occasionally check that the operation hasn't been interrupted, i.e. that state() returns Running.

    Exceptions
    PiiExecutionException

    whenever an unrecoverable error occurs during a processing round, the operation is interrupted, or finishes execution due to end of input data.

    Reimplemented from PiiDefaultOperation.

Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.