Coder Social home page Coder Social logo

compile issues about niswgsp HOT 22 CLOSED

sailor-z avatar sailor-z commented on July 22, 2024
compile issues

from niswgsp.

Comments (22)

cl199443 avatar cl199443 commented on July 22, 2024 2

Thanks for your source code ,which is important for me to learn image stitching. Besides, I have compiled and run this code in Windows 10 successfully with VS2013.

from niswgsp.

nothinglo avatar nothinglo commented on July 22, 2024

I am sorry for the unclear description. As I mentioned in "Usage", It has 3 dependencies (Eigen, VLFeat, and OpenCV). After installing them and compile the code with them. Could you tell me what problems did you meet? In addition, you can find more details of my compilation environment in project.pbxproj under the *.xcodeproj. Thanks.

from niswgsp.

nothinglo avatar nothinglo commented on July 22, 2024

I didn't compile the code in Windows or Linux before, but I think it should be ok. Could you tell me which variables are found undefined? Thanks.

from niswgsp.

zyf12389 avatar zyf12389 commented on July 22, 2024

MAXFLOAT M_PI M_PI_2 are not defined

from niswgsp.

nothinglo avatar nothinglo commented on July 22, 2024

You can define Pi and Pi^2 by yourself. Thanks.

from niswgsp.

swq-1993 avatar swq-1993 commented on July 22, 2024

 Did you compiled the code in Linux successfully? @hust0zzcc , I met some problem just like you ever met , could you tell me you process and how do you fix it ?

from niswgsp.

sailor-z avatar sailor-z commented on July 22, 2024

I'm so sorry I missed your reply.My problem is as follows:'make_unique' was not declared in this scope in ImageData.cpp

from niswgsp.

nothinglo avatar nothinglo commented on July 22, 2024

Hi, I think you should check my compile information as below to make sure you can use some of the functions supported by the new version of C++.

My GCC_VRSION is Apple LLVM 6.0

GCC_C_LANGUAGE_STANDARD = GNU99 [-std=gnu99]
CLANG_CXX_LANGUAGE_STANDARD = GNU++14 [-std=gnu++14]
CLANG_CXX_LIBRARY = libc++ (LLVM C++ standard library with C++11 support)

Thanks.

from niswgsp.

swq-1993 avatar swq-1993 commented on July 22, 2024

sorry, I checked it . But I do not have MacOS , so I trying to set up your compile environment in my Ubuntu 16.04,now I met some problem in setting up the compile environment , so I need someone's help who compiled succeed the code.

from niswgsp.

sailor-z avatar sailor-z commented on July 22, 2024

Hi!
I think maybe there is an error in your code at APAP_Stitching.cpp. V(j,V.rows()-1) should be V(j,cols()-1).Besides,Can you give me the download link of your Eigen version ?I can't find it.I can't use "LeastSquaresConjugateGradient" class successfully in Eigen 3.3.3,either.
Thanks!

from niswgsp.

nothinglo avatar nothinglo commented on July 22, 2024

Hi,

Indeed, it should be better to use cols(). I noticed it because the section of the code is followed by the APAP's author. I didn't change it because I think if it throws out the index error, it means your feature points are not enough (< 5).

The Eigen's main page has the newest version download link of the development branch. You can try it.

Thanks.

from niswgsp.

sailor-z avatar sailor-z commented on July 22, 2024

I have tried this version,but it still met the same error:
niswgsp: /usr/include/eigen3/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h:99: const Eigen::Solve<Eigen::DiagonalPreconditioner<_Scalar>, Rhs> Eigen::DiagonalPreconditioner<_Scalar>::solve(const Eigen::MatrixBase&) const [with Rhs = Eigen::Matrix<double, -1, 1>; _Scalar = double]: Assertion `m_invdiag.size()==b.rows() && "DiagonalPreconditioner::solve(): invalid number of rows of the right hand side matrix b"' failed.
I have no idea about how to solve this problem up to now.

from niswgsp.

nothinglo avatar nothinglo commented on July 22, 2024

Hi,

Could you tell me this is a compile error or a runtime error?

Thanks.

from niswgsp.

sailor-z avatar sailor-z commented on July 22, 2024

It's a runtime error.

from niswgsp.

nothinglo avatar nothinglo commented on July 22, 2024

Hi, Could you give me more information like which file and which line did you get the error?
Thanks.

from niswgsp.

mpelang avatar mpelang commented on July 22, 2024

@zyf12389
hi, may I know your choices for MAXFLOAT?

from niswgsp.

tlliao avatar tlliao commented on July 22, 2024

What's your choices for MAXFLOAT? In math.h, the M_PI_2 means one-half pi, so in your code, the M_PI_2 means square of pi, or one-half pi?

from niswgsp.

nothinglo avatar nothinglo commented on July 22, 2024

@tlliao M_PI_2 == pi/2
Thanks.

from niswgsp.

tlliao avatar tlliao commented on July 22, 2024

Hi, I find that the MAXFLOAT was used many times, so what's your choices for MAXFLOAT and what's the meaning?

from niswgsp.

nothinglo avatar nothinglo commented on July 22, 2024

It seems MAXFLOAT is not a standard parameter. You can change it as follow: https://stackoverflow.com/questions/28980541/error-identifier-maxfloat-is-undefined

In this project, it is used for initialization when finding the minimum number.

from niswgsp.

nothinglo avatar nothinglo commented on July 22, 2024

@cl199443

I am glad to get this news. If you have available time, maybe you can help me to reply some issues which fail to run the code? I will be really thankful to you!

from niswgsp.

nothinglo avatar nothinglo commented on July 22, 2024

Thanks to @Yannnnnnnnnnnn!
This is Ubuntu version:
https://github.com/Yannnnnnnnnnnn/NISwGSP

from niswgsp.

Related Issues (20)

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.