perform an generic operation based on the elements of the two images

C# | Visual Basic | Visual C++ |
public void Action<TOtherDepth>( Image<TColor, TOtherDepth> img2, Toolbox..::.Action<TDepth, TOtherDepth> action )
Public Sub Action(Of TOtherDepth) ( _ img2 As Image(Of TColor, TOtherDepth), _ action As Toolbox..::.Action(Of TDepth, TOtherDepth) _ )
public: generic<typename TOtherDepth> void Action( Image<TColor, TOtherDepth>^ img2, Toolbox..::.Action<TDepth, TOtherDepth>^ action )

- TOtherDepth
- The depth of the second image

- action (Toolbox..::.Action<(Of <(TDepth, TOtherDepth>)>))
- An action such that the first parameter is the a single channel of a pixel from the first image, the second parameter is the corresponding channel of the correspondind pixel from the second image