sj.opencv
Class Scalar

java.lang.Object
  extended by sj.opencv.Scalar

public class Scalar
extends java.lang.Object


Constructor Summary
Scalar()
           
Scalar(double value)
           
Scalar(double[] vals)
          Creates a Scalar using an incoming array without copying
Scalar(double v1, double v2)
           
Scalar(double v1, double v2, double v3)
           
Scalar(double v1, double v2, double v3, double v4)
           
 
Method Summary
 double get()
           
 double get(int i)
           
 void set(double value)
          Sets the first value in the array
 void set(int i, double value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Scalar

public Scalar(double[] vals)
Creates a Scalar using an incoming array without copying

Parameters:
vals -

Scalar

public Scalar(double v1,
              double v2,
              double v3,
              double v4)

Scalar

public Scalar(double v1,
              double v2,
              double v3)

Scalar

public Scalar(double v1,
              double v2)

Scalar

public Scalar(double value)

Scalar

public Scalar()
Method Detail

get

public double get()
Returns:
the first value in the array

get

public double get(int i)

set

public void set(double value)
Sets the first value in the array

Parameters:
value -

set

public void set(int i,
                double value)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object