Code Monkey home page Code Monkey logo

warping_resize's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

peterzs

warping_resize's Issues

error in global warping

In global warping, i got this error:

warping_resize: /usr/include/eigen3/Eigen/src/Core/DenseBase.h:261: void Eigen::DenseBase::resize(Eigen::Index, Eigen::Index) [with Derived = Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, true>; Eigen::Index = long int]: Assertion `rows == this->rows() && cols == this->cols() && "DenseBase::resize() does not actually allow to resize."' failed.
已放弃 (核心已转储)

I found that it happened when executing SMatrixd V = solver->solve(b);

Some Problems about the implementation of global wrapping

The following is part of codes in global_wraping.hpp

for (int it = 0; it < option.nums_iteration; it++) {
	auto K_copy = SMatrixd(K); // a deep copy
	const int K_row_offset = K_cols; // Shape Matrix is K_cols x K_cols
	line_optimizer.make_block_diag(K_copy, option.lambda_l, K_row_offset, 0);
	auto K_weighted = SMatrixd(K_copy * Q);

	SMatrixd A = eigen_row_concat(B_coeffs, K_weighted);

	this->solve_mesh(A, b_term);

	// opt_mesh.show_mesh(src, "mesh - it = " + std::to_string(it));

	// fix V, update theta
	line_optimizer.update_line_theta(opt_mesh);

	std::cout << "iteration " << it << " - ok" << std::endl;
	}
}

You use the Q matrix so that the whole mesh V_q can be multiplied by K*Q . But the optimization problem is to find the V_q which can minimize the energy E. Did you forget to compute the derivative of V_q? You need to compute the derivative and set it to 0 and then you can find the V_q to minimize the energy E. Er... Maybe I miss some codes or you made a mistake?
Look forward to your reply!!!Thx!

A question about code details.

May I ask what's the meaning about Matrix Q? What the meaning of the shape-line weight corresponds to is in the paper? Thank you!
Looking forward to your answer, thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.