File: Started.java

package info (click to toggle)
visp 3.6.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 119,296 kB
  • sloc: cpp: 500,914; ansic: 52,904; xml: 22,642; python: 7,365; java: 4,247; sh: 482; makefile: 237; objc: 145
file content (35 lines) | stat: -rw-r--r-- 1,105 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import org.visp.core.VpCameraParameters;
import org.visp.core.VpColVector;
import org.visp.core.VpImageRGBa;
import org.visp.core.VpImageUChar;
import org.visp.core.VpMatrix;
import org.visp.core.VpRGBa;

public class Started {
  static {
    System.loadLibrary("visp_java350");
  }
  public static void main(String[] args) {
    // VpMatrix
    VpMatrix vp = new VpMatrix(2,3,1.5);
    System.out.println(vp.getCol(0));
    System.out.println(vp.transpose());
                
    // VpColVector
    VpColVector vpColVector = new VpColVector(10,1.5);
    System.out.println(vpColVector.infinityNorm());
                
    // VpImageUChar
    VpImageUChar imageUChar = new VpImageUChar(2, 4, (byte)220);
    System.out.println(imageUChar);
                
    // VpImageRGBa
    VpImageRGBa colorImage = new VpImageRGBa(3, 5, new VpRGBa((char)255,(char)0,(char)0,(char)255));
    System.out.println(colorImage);
                
    // VpCameraParameters
    VpCameraParameters vpCameraParameters = new VpCameraParameters(1.0, 1.0, 1.0, 1.0);
    System.out.println(vpCameraParameters.get_K());
  }
}