Giter Site home page Giter Site logo

acmh's Introduction

ACMH

[News] The code for ACMM is released!!!
[News] The code for ACMP is released!!!
[News] The code for ACMMP is released!!!

About

ACMH is a simple yet effective PatchMatch MVS method, which is the base model of ACMM, ACMP and ACMMP. If you find this project useful for your research, please cite:

@article{Xu2019ACMM,  
  title={Multi-Scale Geometric Consistency Guided Multi-View Stereo}, 
  author={Xu, Qingshan and Tao, Wenbing}, 
  journal={Computer Vision and Pattern Recognition (CVPR)},
  year={2019}
}
@article{Xu2020ACMP,  
  title={Planar Prior Assisted PatchMatch Multi-View Stereo}, 
  author={Xu, Qingshan and Tao, Wenbing}, 
  journal={AAAI Conference on Artificial Intelligence (AAAI)},
  year={2020}
}

Dependencies

The code has been tested on Ubuntu 14.04 with GTX Titan X.

Usage

  • Complie ACMH
cmake .  
make
  • Test
Use script colmap2mvsnet_acm.py to convert COLMAP SfM result to ACMH input   
Run ./ACMH $data_folder to get reconstruction results

Acknowledgemets

This code largely benefits from the following repositories: Gipuma and COLMAP. Thanks to their authors for opening source of their excellent works.

acmh's People

Contributors

ghixu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

acmh's Issues

invalid bilateral space sigma parameter

image

In the code settings

the bilateral space weighting is almost truncated flat part of Gaussian distribution.
only 15% from the peak to valley, shown by the top image.

Even set the same weight in the kernel, no visual difference from the result.

image
The above weight distribution is more space logic?
The idea is 3 * sigma cover the 99% Gaussian.

min = 0.8681234453945849
max = 1.0
max/min = 1.151909910168909

import cv2
import numpy as np

# ksize  = 31
ksize  = 11
center = ksize // 2
# sigma  = ksize / 3 / 2 / 1.6627
sigma  = 5
A = np.zeros((ksize, ksize), dtype=float)

for y in range(ksize):
    for x in range(ksize):
        distX = x - center
        distY = y - center
        dist  = np.sqrt(distX*distX + distY*distY)
        v     = np.exp(-dist / (2*sigma*sigma))
        A[y, x] = v

minV = np.min(A[:])
maxV = np.max(A[:])
print(minV, maxV, maxV/minV)

A = cv2.resize(A, (256, 256))

cv2.imshow('img', A)
cv2.waitKey()

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.