Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
3fe5984e
Commit
3fe5984e
authored
Jul 26, 2013
by
ozantonkal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cloud collection widget implementation
parent
edfad34d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
widgets.hpp
modules/viz/include/opencv2/viz/widgets.hpp
+13
-0
cloud_widgets.cpp
modules/viz/src/cloud_widgets.cpp
+0
-0
shape_widgets.cpp
modules/viz/src/shape_widgets.cpp
+4
-4
No files found.
modules/viz/include/opencv2/viz/widgets.hpp
View file @
3fe5984e
...
@@ -202,6 +202,18 @@ namespace cv
...
@@ -202,6 +202,18 @@ namespace cv
struct
CreateCloudWidget
;
struct
CreateCloudWidget
;
};
};
class
CV_EXPORTS
CloudCollectionWidget
:
public
Widget3D
{
public
:
CloudCollectionWidget
();
void
addCloud
(
InputArray
cloud
,
InputArray
colors
,
const
Affine3f
&
pose
=
Affine3f
::
Identity
());
void
addCloud
(
InputArray
cloud
,
const
Color
&
color
=
Color
::
white
(),
const
Affine3f
&
pose
=
Affine3f
::
Identity
());
private
:
struct
CreateCloudWidget
;
};
class
CV_EXPORTS
CloudNormalsWidget
:
public
Widget3D
class
CV_EXPORTS
CloudNormalsWidget
:
public
Widget3D
{
{
public
:
public
:
...
@@ -239,6 +251,7 @@ namespace cv
...
@@ -239,6 +251,7 @@ namespace cv
template
<>
CV_EXPORTS
CameraPositionWidget
Widget
::
cast
<
CameraPositionWidget
>
();
template
<>
CV_EXPORTS
CameraPositionWidget
Widget
::
cast
<
CameraPositionWidget
>
();
template
<>
CV_EXPORTS
TrajectoryWidget
Widget
::
cast
<
TrajectoryWidget
>
();
template
<>
CV_EXPORTS
TrajectoryWidget
Widget
::
cast
<
TrajectoryWidget
>
();
template
<>
CV_EXPORTS
CloudWidget
Widget
::
cast
<
CloudWidget
>
();
template
<>
CV_EXPORTS
CloudWidget
Widget
::
cast
<
CloudWidget
>
();
template
<>
CV_EXPORTS
CloudCollectionWidget
Widget
::
cast
<
CloudCollectionWidget
>
();
template
<>
CV_EXPORTS
CloudNormalsWidget
Widget
::
cast
<
CloudNormalsWidget
>
();
template
<>
CV_EXPORTS
CloudNormalsWidget
Widget
::
cast
<
CloudNormalsWidget
>
();
template
<>
CV_EXPORTS
MeshWidget
Widget
::
cast
<
MeshWidget
>
();
template
<>
CV_EXPORTS
MeshWidget
Widget
::
cast
<
MeshWidget
>
();
...
...
modules/viz/src/cloud_widgets.cpp
View file @
3fe5984e
This diff is collapsed.
Click to expand it.
modules/viz/src/shape_widgets.cpp
View file @
3fe5984e
...
@@ -1204,10 +1204,10 @@ cv::viz::TrajectoryWidget::TrajectoryWidget(const std::vector<Affine3f> &path, i
...
@@ -1204,10 +1204,10 @@ cv::viz::TrajectoryWidget::TrajectoryWidget(const std::vector<Affine3f> &path, i
// Set the color for polyData
// Set the color for polyData
vtkSmartPointer
<
vtkUnsignedCharArray
>
colors
=
vtkSmartPointer
<
vtkUnsignedCharArray
>::
New
();
vtkSmartPointer
<
vtkUnsignedCharArray
>
colors
=
vtkSmartPointer
<
vtkUnsignedCharArray
>::
New
();
colors
->
SetNumberOfComponents
(
3
);
colors
->
SetNumberOfComponents
(
3
);
colors
->
SetNumberOfTuples
(
nr_points
);
// TODO Make this more efficient
colors
->
FillComponent
(
0
,
color
[
2
]);
for
(
int
i
=
0
;
i
<
nr_points
;
++
i
)
colors
->
FillComponent
(
1
,
color
[
1
]);
colors
->
InsertNextTuple3
(
color
[
2
],
color
[
1
]
,
color
[
0
]);
colors
->
FillComponent
(
2
,
color
[
0
]);
polyData
->
GetPointData
()
->
SetScalars
(
colors
);
polyData
->
GetPointData
()
->
SetScalars
(
colors
);
appendFilter
->
AddInputConnection
(
polyData
->
GetProducerPort
());
appendFilter
->
AddInputConnection
(
polyData
->
GetProducerPort
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment