Update samples (#10333)
* Update samples * Update calib3d.hpp * Update calib3d.hpp * Update calib3d.hpp * Update calib3d.hpp
This commit is contained in:
committed by
Vadim Pisarevsky
parent
d3a124c820
commit
1654dfe3a9
@@ -32,10 +32,10 @@ void KeyboardViz3d(const viz::KeyboardEvent &w, void *t);
|
||||
void DrawHistogram3D(Histo3DData &h)
|
||||
{
|
||||
//! [get_cube_size]
|
||||
int planSize = h.histogram.step1(0);
|
||||
int cols = h.histogram.step1(1);
|
||||
int rows = planSize / cols;
|
||||
int plans = h.histogram.total() / planSize;
|
||||
int planSize = (int)h.histogram.step1(0);
|
||||
int cols = (int)h.histogram.step1(1);
|
||||
int rows = (int)planSize / cols;
|
||||
int plans = (int)h.histogram.total() / planSize;
|
||||
h.fen3D->removeAllWidgets();
|
||||
h.nbWidget=0;
|
||||
if (h.nbWidget==0)
|
||||
|
||||
@@ -56,12 +56,12 @@ int main()
|
||||
{
|
||||
/* Rotation using rodrigues */
|
||||
/// Rotate around (1,1,1)
|
||||
rot_vec.at<float>(0,0) += CV_PI * 0.01f;
|
||||
rot_vec.at<float>(0,1) += CV_PI * 0.01f;
|
||||
rot_vec.at<float>(0,2) += CV_PI * 0.01f;
|
||||
rot_vec.at<float>(0,0) += (float)CV_PI * 0.01f;
|
||||
rot_vec.at<float>(0,1) += (float)CV_PI * 0.01f;
|
||||
rot_vec.at<float>(0,2) += (float)CV_PI * 0.01f;
|
||||
|
||||
/// Shift on (1,1,1)
|
||||
translation_phase += CV_PI * 0.01f;
|
||||
translation_phase += (float)CV_PI * 0.01f;
|
||||
translation = sin(translation_phase);
|
||||
|
||||
Mat rot_mat;
|
||||
|
||||
Reference in New Issue
Block a user