Utilities
Module including general utilities for visualization.
This module includes the following functions:
build_cam_pyr(cam_scale, K)
Constructs a camera frustum for visualization.
needs work...
Source code in cvt/visualization/util.py
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
|
build_pyr_point_cloud(pyr_pts, filename)
Builds a point cloud for a camera frustum visual.
needs work...
Source code in cvt/visualization/util.py
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 |
|
display_inlier_outlier(cloud, indices)
Displays a point cloud with outlier points colored red.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cloud |
o3d.geometry.PointCloud
|
Point cloud to be displayed. |
required |
indices |
np.ndarray
|
Indices indicating the inlier points. |
required |
Source code in cvt/visualization/util.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
display_map(filename, disp_map, mx, mn)
Writes an input map to a normalized image.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename |
str
|
Name of the file to store the input map. |
required |
disp_map |
np.ndarray
|
Map to be stored as an image file. |
required |
mx |
float
|
maximum value used for pixel intensity normalization. |
required |
mn |
float
|
minimum value used for pixel intensity normalization. |
required |
Source code in cvt/visualization/util.py
226 227 228 229 230 231 232 233 234 235 236 |
|