blob: 2efd99ea03cf6ed5dcbee3a2368ffc91a1a918db [file] [log] [blame]
Philipp Schraderdada1072020-11-24 11:34:46 -08001load("//tools:platforms.bzl", "platforms")
2load("//tools/build_rules:gtk_dependent.bzl", "gtk_dependent_cc_library")
Brian Silverman7a7c24d2018-09-01 17:49:09 -07003
4package(default_visibility = ["//visibility:public"])
Parker Schuh6691f192017-01-14 17:01:02 -08005
6cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -07007 name = "range_image",
8 srcs = ["range_image.cc"],
9 hdrs = ["range_image.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -080010 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -070011 deps = [
12 "//aos/vision/debug:overlay",
13 "//aos/vision/image:image_types",
14 "//aos/vision/math:segment",
15 "//aos/vision/math:vector",
Alex Perrycb7da4b2019-08-28 19:35:56 -070016 "@org_tuxfamily_eigen//:eigen",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070017 ],
Parker Schuh6691f192017-01-14 17:01:02 -080018)
19
20cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070021 name = "region_alloc",
22 hdrs = ["region_alloc.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -080023 target_compatible_with = ["@platforms//os:linux"],
Parker Schuh6691f192017-01-14 17:01:02 -080024)
25
26cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070027 name = "contour",
28 srcs = ["contour.cc"],
29 hdrs = ["contour.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -080030 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -070031 deps = [
32 ":range_image",
33 ":region_alloc",
34 "//aos/vision/debug:overlay",
35 "//aos/vision/math:segment",
36 ],
Parker Schuh6691f192017-01-14 17:01:02 -080037)
38
39cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070040 name = "threshold",
Brian Silverman37b15b32019-03-10 13:30:18 -070041 srcs = [
42 "threshold.cc",
43 ],
44 hdrs = [
45 "threshold.h",
46 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080047 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -070048 deps = [
49 ":range_image",
Brian Silverman4482db52019-03-10 16:14:48 -070050 "//aos/logging",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070051 "//aos/vision/image:image_types",
52 ],
Parker Schuh6691f192017-01-14 17:01:02 -080053)
54
Brian Silverman5eec8b92019-03-10 15:14:31 -070055cc_test(
56 name = "threshold_test",
57 srcs = [
58 "threshold_test.cc",
59 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080060 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman5eec8b92019-03-10 15:14:31 -070061 deps = [
62 ":range_image",
63 ":threshold",
64 "//aos/testing:googletest",
65 "//aos/vision/image:image_types",
66 ],
67)
68
Parker Schuh6691f192017-01-14 17:01:02 -080069cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070070 name = "hierarchical_contour_merge",
71 srcs = ["hierarchical_contour_merge.cc"],
72 hdrs = ["hierarchical_contour_merge.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -080073 target_compatible_with = platforms.any_of([
74 "@platforms//cpu:x86_64",
75 "//tools/platforms/hardware:raspberry_pi",
76 ]),
Brian Silverman7a7c24d2018-09-01 17:49:09 -070077 deps = [
78 ":contour",
79 ":disjoint_set",
80 ":range_image",
Alex Perrycb7da4b2019-08-28 19:35:56 -070081 "@org_tuxfamily_eigen//:eigen",
Brian Silverman7a7c24d2018-09-01 17:49:09 -070082 ],
Parker Schuh6691f192017-01-14 17:01:02 -080083)
84
85cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070086 name = "disjoint_set",
87 hdrs = ["disjoint_set.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -080088 target_compatible_with = ["@platforms//os:linux"],
Parker Schuh6691f192017-01-14 17:01:02 -080089)
90
91cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -070092 name = "find_blob",
93 srcs = ["find_blob.cc"],
94 hdrs = ["find_blob.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -080095 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -070096 deps = [
97 ":disjoint_set",
98 ":range_image",
99 "//aos/vision/debug:overlay",
100 "//aos/vision/math:segment",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700101 "@org_tuxfamily_eigen//:eigen",
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700102 ],
Parker Schuh6691f192017-01-14 17:01:02 -0800103)
104
105cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700106 name = "codec",
107 srcs = ["codec.cc"],
108 hdrs = ["codec.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800109 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700110 deps = [
111 ":range_image",
112 "//aos/vision/debug:overlay",
113 "//aos/vision/math:segment",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700114 "@org_tuxfamily_eigen//:eigen",
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700115 ],
Parker Schuh6691f192017-01-14 17:01:02 -0800116)
117
118cc_test(
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700119 name = "codec_test",
120 srcs = ["codec_test.cc"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800121 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700122 deps = [
123 ":codec",
124 "//aos/testing:googletest",
125 ],
Parker Schuh6691f192017-01-14 17:01:02 -0800126)
127
Parker Schuh0ff777c2017-02-19 15:01:13 -0800128cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700129 name = "move_scale",
130 srcs = ["move_scale.cc"],
131 hdrs = ["move_scale.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800132 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700133 deps = [
134 ":range_image",
135 "//aos/vision/image:image_types",
136 ],
Parker Schuh0ff777c2017-02-19 15:01:13 -0800137)
138
139cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700140 name = "test_utils",
141 srcs = ["test_utils.cc"],
142 hdrs = ["test_utils.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800143 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700144 deps = [
145 ":range_image",
146 ],
Parker Schuh0ff777c2017-02-19 15:01:13 -0800147)
148
149cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700150 name = "transpose",
151 srcs = ["transpose.cc"],
152 hdrs = ["transpose.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800153 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700154 deps = [
155 ":range_image",
156 ],
Parker Schuh0ff777c2017-02-19 15:01:13 -0800157)
158
159cc_test(
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700160 name = "transpose_test",
161 srcs = ["transpose_test.cc"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800162 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700163 deps = [
164 ":test_utils",
165 ":transpose",
166 "//aos/testing:googletest",
167 ],
Parker Schuh0ff777c2017-02-19 15:01:13 -0800168)
169
Parker Schuh0be12282017-02-05 11:54:29 -0800170gtk_dependent_cc_library(
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700171 name = "stream_view",
172 hdrs = ["stream_view.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800173 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman7a7c24d2018-09-01 17:49:09 -0700174 deps = [
175 ":range_image",
176 "//aos/vision/debug:debug_window",
177 "//aos/vision/image:image_types",
178 ],
Parker Schuh6691f192017-01-14 17:01:02 -0800179)