File: test-smoothing.test

package info (click to toggle)
ros-opencv-apps 2.0.2-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,944 kB
  • sloc: cpp: 6,155; python: 302; xml: 166; makefile: 7
file content (89 lines) | stat: -rw-r--r-- 4,250 bytes parent folder | download | duplicates (4)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<launch>
  <arg name="gui" default="true" />
  <arg name="use_sim_time" default="true" />
  <node name="play_face_bag" pkg="rosbag" type="play" args="--clock -l $(find opencv_apps)/test/face_detector_withface_test_diamondback.bag" />

  <group ns="wide_stereo/left" >
    <node name="image_proc" pkg="image_proc" type="image_proc" />
    <node name="image_view" pkg="image_view" type="image_view" args="image:=image_rect_color" if="$(arg gui)" />

    <!-- smoothing.cpp  -->
    <!-- 0: Homogeneous blur -->
    <include file="$(find opencv_apps)/launch/smoothing.launch" >
      <arg name="debug_view" value="$(arg gui)" />
      <arg name="image" value="image_rect" />
      <arg name="filter_type" value="0" />
      <arg name="node_name" value="smooth_homogeneous_filter" />
    </include>

    <!-- Test Codes -->
    <node name="smooth_homogeneous_filter_saver" pkg="image_view" type="image_saver" args="image:=smooth_homogeneous_filter/image" >
      <param name="filename_format" value="$(find opencv_apps)/test/smooth_homogeneous_filter.png"/>
    </node>
    <param name="smooth_homogeneous_filter_test/topic" value="smooth_homogeneous_filter/image" />    <!-- opencv_apps/FaceArrayStamped -->
    <test test-name="smooth_homogeneous_filter_test" pkg="rostest" type="hztest" name="smooth_homogeneous_filter_test" >
      <param name="hz" value="20" />
      <param name="hzerror" value="10" />
      <param name="test_duration" value="5.0" /> 
    </test>

    <!-- 1: Gaussian blur -->
    <include file="$(find opencv_apps)/launch/smoothing.launch" >
      <arg name="debug_view" value="$(arg gui)" />
      <arg name="image" value="image_rect" />
      <arg name="filter_type" value="1" />
      <arg name="node_name" value="smooth_gaussian_filter" />
    </include>

    <!-- Test Codes -->
    <node name="smooth_gaussian_filter_saver" pkg="image_view" type="image_saver" args="image:=smooth_gaussian_filter/image" >
      <param name="filename_format" value="$(find opencv_apps)/test/smooth_gaussian_filter.png"/>
    </node>
    <param name="smooth_gaussian_filter_test/topic" value="smooth_gaussian_filter/image" />
    <test test-name="smooth_gaussian_filter_test" pkg="rostest" type="hztest" name="smooth_gaussian_filter_test" >
      <param name="hz" value="20" />
      <param name="hzerror" value="10" />
      <param name="test_duration" value="5.0" />
    </test>

    <!-- 2: Median blur -->
    <include file="$(find opencv_apps)/launch/smoothing.launch" >
      <arg name="debug_view" value="$(arg gui)" />
      <arg name="image" value="image_rect" />
      <arg name="filter_type" value="2" />
      <arg name="node_name" value="smooth_median_filter" />
    </include>

    <!-- Test Codes -->
    <node name="smooth_median_filter_saver" pkg="image_view" type="image_saver" args="image:=smooth_median_filter/image" >
      <param name="filename_format" value="$(find opencv_apps)/test/smooth_median_filter.png"/>
    </node>
    <param name="smooth_median_filter_test/topic" value="smooth_median_filter/image" />
    <test test-name="smooth_median_filter_test" pkg="rostest" type="hztest" name="smooth_median_filter_test" >
      <param name="hz" value="15" />
      <param name="hzerror" value="14" />
      <param name="test_duration" value="5.0" />
    </test>

    <!-- 3: Bilateral blur -->
    <include file="$(find opencv_apps)/launch/smoothing.launch" >
      <arg name="debug_view" value="$(arg gui)" />
      <arg name="image" value="image_rect" />
      <arg name="filter_type" value="3" />
      <arg name="node_name" value="smooth_bilateral_filter" />
    </include>

    <!-- Test Codes -->
    <node name="smooth_bilateral_filter_saver" pkg="image_view" type="image_saver" args="image:=smooth_bilateral_filter/image" >
      <param name="filename_format" value="$(find opencv_apps)/test/smooth_bilateral_filter.png"/>
    </node>
    <param name="smooth_bilateral_filter_test/topic" value="smooth_bilateral_filter/image" />
    <test test-name="smooth_bilateral_filter_test" pkg="rostest" type="hztest" name="smooth_bilateral_filter_test" >
      <param name="hz" value="15" />
      <param name="hzerror" value="14" />
      <param name="test_duration" value="5.0" />
    </test>


  </group>
</launch>