-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from k-okada/color-filter
use BGR2HSB, support H from 0-360 and 350 - 360+a
- Loading branch information
Showing
7 changed files
with
155 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env python | ||
|
||
PACKAGE='color_filter' | ||
|
||
from dynamic_reconfigure.parameter_generator_catkin import * | ||
|
||
gen = ParameterGenerator() | ||
|
||
gen.add("use_camera_info", bool_t, 0, "Indicates that the camera_info topic should be subscribed to to get the default input_frame_id. Otherwise the frame from the image message will be used.", True) | ||
|
||
gen.add ("h_limit_max", int_t, 0, "The maximum allowed field value Hue", 360, 0, 360) | ||
gen.add ("h_limit_min", int_t, 0, "The minimum allowed field value Hue", 0, 0, 360) | ||
gen.add ("s_limit_max", int_t, 0, "The maximum allowed field value Saturation", 256, 0, 256) | ||
gen.add ("s_limit_min", int_t, 0, "The minimum allowed field value Saturation", 0, 0, 256) | ||
gen.add ("l_limit_max", int_t, 0, "The maximum allowed field value Lightness", 256, 0, 256) | ||
gen.add ("l_limit_min", int_t, 0, "The minimum allowed field value Lightness", 0, 0, 256) | ||
|
||
exit(gen.generate(PACKAGE, "color_filter", "HSLColorFilter")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env python | ||
|
||
PACKAGE='color_filter' | ||
|
||
from dynamic_reconfigure.parameter_generator_catkin import * | ||
|
||
gen = ParameterGenerator() | ||
|
||
gen.add("use_camera_info", bool_t, 0, "Indicates that the camera_info topic should be subscribed to to get the default input_frame_id. Otherwise the frame from the image message will be used.", True) | ||
|
||
gen.add ("h_limit_max", int_t, 0, "The maximum allowed field value Hue", 360, 0, 360) | ||
gen.add ("h_limit_min", int_t, 0, "The minimum allowed field value Hue", 0, 0, 360) | ||
gen.add ("s_limit_max", int_t, 0, "The maximum allowed field value Saturation", 256, 0, 256) | ||
gen.add ("s_limit_min", int_t, 0, "The minimum allowed field value Saturation", 0, 0, 256) | ||
gen.add ("v_limit_max", int_t, 0, "The maximum allowed field value Value", 256, 0, 256) | ||
gen.add ("v_limit_min", int_t, 0, "The minimum allowed field value Value", 0, 0, 256) | ||
|
||
exit(gen.generate(PACKAGE, "color_filter", "HSVColorFilter")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters