Skip to content
Dominant Vanishing Point Detection in Natural Scenes
MATLAB C++
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data Initial commit Jul 24, 2017
mexFunctions add mxDistCtrToVP_RMS.mexa64 May 7, 2018
third_party renamed mxJLinkage.mexa64 Nov 9, 2018
.gitattributes Initial commit Jul 24, 2017
.gitignore Initial commit Jul 24, 2017
LICENSE Initial commit Jul 24, 2017
README.md Update README.md Jul 24, 2017
build_vsEdges.m Initial commit Jul 24, 2017
divideContour.m Initial commit Jul 24, 2017
findLineSeg.m Initial commit Jul 24, 2017
getEdgeFromContour.m Initial commit Jul 24, 2017
getVP_JLinkage.m Initial commit Jul 24, 2017
main.m Initial commit Jul 24, 2017
plotSegmentation_frame.m Initial commit Jul 24, 2017

README.md

Introduction

This is an implementation of the dominant vanishing point detection method described in the paper:

Detecting Dominant Vanishing Points In Natural Scenes with Application to Composition-Sensitive Image Retrieval. Zihan Zhou, Farshid Farhat, and James Z. Wang. IEEE Transactions on Multimedia (TMM), 2017.

Usage

  • run main.m
  • The code is tested on Mac OS X El Capitan. If you want to use it on other platform, you need to compile the .mex files using the source code included.
  • The current package includes the original Berkeley contour detection algorithm, which was used in the paper. However, this algorithm is quite slow (>1 min for an image). For fast computation of the ultrametic contour map (UCM), you can replace this module with newer and faster algorithms such as this one.
  • The size of the input images is assumed to be 500 pixels by default. It is recommended to resize the images to 500 pixels before running the code.

References

If you use this software you have to reference ALL of these papers:

  1. Detecting Dominant Vanishing Points In Natural Scenes with Application to Composition-Sensitive Image Retrieval. Zihan Zhou, Farshid Farhat, and James Z. Wang. IEEE Transactions on Multimedia, 2017.

  2. Contour Detection and Hierarchical Image Segmentation. P. Arbelaez, M. Maire, C. Fowlkes and J. Malik. IEEE Transactions on Pattern Recognition and Machine Intelligence, Vol. 33, No. 5, pp. 898-916, May 2011.

  3. Non-iterative Approach for Fast and Accurate Vanishing Point Detection, Jean-Philippe Tardif. ICCV, 2009.

Copyright and License

Copyright 2017 Zihan Zhou

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Thanks

You can’t perform that action at this time.