FileXML output;
// cause data to be stored directly in text
- output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
+ output.set_shared_output(keyframe->xbuf);
output.tag.set_title("MOVEOBJ");
output.tag.set_property("DRAW_VECTORS", config.draw_vectors);
output.tag.set_property("DO_STABILIZATION", config.do_stabilization);
void MoveObj::read_data(KeyFrame *keyframe)
{
FileXML input;
- input.set_shared_input(keyframe->get_data(), strlen(keyframe->get_data()));
+ input.set_shared_input(keyframe->xbuf);
int result = 0;
while( !(result = input.read_tag()) ) {
goodFeaturesToTrack(next_mat,
*next_corners, corner_count, 0.01, // quality_level
min_distance, noArray(), block_size,
- 0, // use_harris
+ false, // use_harris
0.04); // k
ptV pt1, pt2;
// interpolate with identity matrix
accum_matrix = w0*identity + w1*accum_matrix;
- AffineMatrix matrix;
+ AffineMatrix &matrix = affine->matrix;
for( int i=0,k=0; i<3; ++i )
for( int j=0; j<3; ++j )
matrix.values[i][j] = amat[k++];
//printf("MoveObj::process_buffer %d %jd matrix=\n", __LINE__, start_position);
//matrix.dump();
- affine->set_matrix(&matrix);
// iframe is always temp, if we get here
output->clear_frame();
affine->process(output, iframe, 0, AffineEngine::TRANSFORM,