Code Monkey home page Code Monkey logo

wxbs-descriptors-benchmark's Introduction

This is W1BS descriptors benchmark from paper WxBS: Wide Baseline Stereo Generalizations .

Dataset format:

data/W1BS/ - directories with subsets. G - geometry, A - appearance, S - sensor, map2photo - map vs. photo
Each directory contains: 1: regerence image dir, 2 - "noised" image dir, h - homography 1to2 dir
each image dir contains several images, e.g. dir (data/W1BS/G/1) = 
[arch.keys  obama.keys  vprice0.keys  vprice1.keys  vprice2.keys  yosemite.keys
arch.png   obama.png   vprice0.png   vprice1.png   vprice2.png   yosemite.png]
*.png = image, *.keys = text file with affine keypoints in format: 
    npoints
    x y 5.192*s a11 a12 a21 a22
*.bmp - hpatches-style column image with pre-extracted patches

How to get example results (for now, SIFT, BRIEF and ResizeTo11x11 descriptors are available ):

cd data
./download_W1BS_dataset.sh
cd ../code
./do_everything.sh

To add your descriptor to benchmark, please add corresponding script to code/descriptors directory.

The provided file should take two arguments: path to input image input_img.bmp and path to output text file with descriptors.

Output file: one space separated line for one descriptor. Please, see example in code/descriptors/Pixels11.py or code/descriptors/SIFT.py

Citation

Please cite us if you use this code:

@InProceedings{Mishkin2015WXBS,
 author = {{Mishkin}, D. and {Matas}, J. and {Perdoch}, M. and {Lenc}, K. },
 Booktitle = {Proceedings of the British Machine Vision Conference},
 Publisher                = {BMVA},
 title = "{WxBS: Wide Baseline Stereo Generalizations}",
 year = 2015,
 month = sep,}

wxbs-descriptors-benchmark's People

Contributors

ducha-aiki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

wxbs-descriptors-benchmark's Issues

RuntimeWarning

/media/boyun/wxbs/code/descriptors/aux/numpy_sift.py:179: RuntimeWarning: invalid value encountered in divide
unnorm_desc /= np.linalg.norm(unnorm_desc.flatten(),2)

code/descriptors/aux/numpy_sift.py:179:

179: unnorm_desc /= np.linalg.norm(unnorm_desc.flatten(),2)

def describe(self,patch, userootsift = False):
    norm_patch = self.photonorm(patch, binaryMask = self.binaryMask);
    gx,gy = self.getDerivatives(norm_patch)
    mag = np.sqrt(gx * gx + gy*gy)
    ori = np.arctan2(gy,gx)
    unnorm_desc = self.samplePatch(mag,ori)
    unnorm_desc /= np.linalg.norm(unnorm_desc.flatten(),2)
    unnorm_desc = np.clip(unnorm_desc, 0,self.maxBinValue);
    unnorm_desc /= np.linalg.norm(unnorm_desc.flatten(),2)
    if userootsift:
        unnorm_desc = np.sqrt(unnorm_desc / np.linalg.norm(unnorm_desc.flatten(),1))
    return np.clip(512. * unnorm_desc , 0, 255).astype(np.int32);

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.