public

Inheritance Graph

graph BT
	SimilarPixelCounter
	SimilarPixelCounter --> AbstractImageComparator
	click SimilarPixelCounter "classMinSG_1_1ImageCompare_1_1SimilarPixelCounter"
	click AbstractImageComparator "classMinSG_1_1ImageCompare_1_1AbstractImageComparator"

Description

Count the quantum of pixels which are the similar in their color between the two images.

Author: Benjamin Eikel

Date: 2011-06-14

Public Functions

   
   
  SimilarPixelCounter()
   
  SimilarPixelCounter(const SimilarPixelCounter & other)
   
  ~SimilarPixelCounter()
   
SimilarPixelCounter & operator=(const SimilarPixelCounter & void)
   
bool compare( Rendering::RenderingContext & context, Rendering::Texture * firstTex, Rendering::Texture * secondTex, double & value, Rendering::Texture * resultTex)

Documentation

function
MinSG::ImageCompare::SimilarPixelCounter::SimilarPixelCounter

public inline
   
   
SimilarPixelCounter( )

Defined in MinSG/Ext/ImageCompare/SimilarPixelCounter.h:36


function
MinSG::ImageCompare::SimilarPixelCounter::SimilarPixelCounter

public inline
     
     
SimilarPixelCounter( const SimilarPixelCounter & other )

Defined in MinSG/Ext/ImageCompare/SimilarPixelCounter.h:38


function
MinSG::ImageCompare::SimilarPixelCounter::~SimilarPixelCounter

public inline virtual
   
   
~SimilarPixelCounter( )

Defined in MinSG/Ext/ImageCompare/SimilarPixelCounter.h:40


function
MinSG::ImageCompare::SimilarPixelCounter::operator=

public inline
     
     
SimilarPixelCounter & operator=( const SimilarPixelCounter & void )

Defined in MinSG/Ext/ImageCompare/SimilarPixelCounter.h:42


function
MinSG::ImageCompare::SimilarPixelCounter::compare

public virtual
     
     
bool compare( Rendering::RenderingContext & context,
  Rendering::Texture * firstTex,
  Rendering::Texture * secondTex,
  double & value,
  Rendering::Texture * resultTex
)    

Parameters

value
Share of correct pixels on the whole image. 1.0 means there are no different pixels, 0.0 means that all pixels differ.
resultTex
Texture containing the absolute difference values between the two input textures.

Defined in MinSG/Ext/ImageCompare/SimilarPixelCounter.h:50