Giter Club home page Giter Club logo

Comments (2)

ZeLianWen avatar ZeLianWen commented on September 2, 2024

Thanks for you attention. My english is poor, please see the function "create_initial_image" where
"gray_image.convertTo(floatImage, CV_32FC1, 1.0 / 255.0, 0)" is express. This means we must convert the image to floating point type, 1.0 / 255.0 means the range is 0 to 1 after converted. So you must ensure the convertTo function support CV_S16C1. You should ensure the date type is identical .

If you want reduce the memory consume, i suggest you pay attention to the following aspects:

  1. sift.cpp->num_octaves->temp = cvRound(log(size_temp) / log((float)2) - 2)
    you can reduce the layer, it is temp, modified it to "temp = cvRound(log(size_temp) / log((float)2) - 3)" or "temp = cvRound(log(size_temp) / log((float)2) - 4)"

  2. main.cpp->MySift sift_1(0, 3, 0.04, 10, 1.6, true)
    change it to "MySift sift_1(0, 3, 0.04, 10, 1.6, false)"

  3. delete the main.cpp->image_fusion(image_1, image_2, homography, fusion_image, mosaic_image, regist_image)
    the function image_funct

from image-registration.

ZeLianWen avatar ZeLianWen commented on September 2, 2024

main.cpp->gauss_pyr_1, dog_pyr_1 and main.cpp->gauss_pyr_2, dog_pyr_2 is global variables, so you can change it to local variable.
you can combine "sift_1.detect" and "sift_1.comput_des".

from image-registration.

Related Issues (9)

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.