C + + invoke MATLAB engine and Eigen configuration

Source: Internet
Author: User

This week began to implement the grid watermark code, although nothing, but also can only step by step to explore the move forward.

The title of my thesis is <<watermarking 3D polygonal Meshes in the Mesh spectral domain>> the previous blog has a theoretical analysis of this paper, it seems not difficult, But it's hard to get it done. The first problem to be solved is to configure the experimental environment.

At first I was going to use eigen to decompose the eigenvalues of the Laplace matrix, so it involved the eigen configuration. Eigen is an open-source matrix operations Library, which encapsulates a large number of matrix operations, the direct invocation is very simple, its configuration is very simple.

First, configure the Eigen

    1. Download Eigen
    2. Extract
    3. Include the Eigen directory in your project, as described in

Right click on the project, select Properties, in the VC + + directory, in the inclusion directory will be included in the Eigen directory.

?

Second, the configuration of MATLAB

1. Add included directories

Select General under C + +, add extern/include and extern/include/win32 under MATLAB installation locations in the attachment inclusion directory

?

2. Add Library

Under library Manager, select General, add Libeng.lib, Libmx.lib, and libmat.lib in additional dependencies

?

Then add the Extern/lib/win32/microsoft under the MATLAB installation location in the Attachment library directory

?

3. If you encounter the following problems during the call engine, include the path F:\Matlab_32\bin\win32 in the system variable

C + + invoke MATLAB engine and Eigen configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.