Questions tagged [vanishing-point]
24 questions
7
votes
2 answers
Extract vanishing point from lines with Open CV
I'm working on OpenCV based project in python, and I have to calculate/extract and show visually the vanishing point from existing lines.
My first task is to detect lines, that's very easy with Canny and HoughLinesP functions:
import cv2
import…

AlexAcc
- 601
- 2
- 10
- 28
5
votes
1 answer
Computing Rotation Matrix from Vanishing Points
I am trying to recover the 3D orientation of the three axes of a building in an image.
My current approach is to manually annotate the three vanishing points corresponding to the three axes, estimate the camera calibration matrix K, and then compute…

TheTaintedOne
- 335
- 3
- 12
4
votes
2 answers
How vanishing points can help in restoring proper camera perspective?
I'm trying to insert 3D object into a photo, that was not taken by me. Meta info is erased, so I can only guess camera parameters and dimensions of the objects in the scene. How can I set proper campoints in such case, is there any methodology?
I've…

jayarjo
- 16,124
- 24
- 94
- 138
4
votes
1 answer
OpenCV time to contact with optical flow
I'm trying to write a program with C++ and OpenCV that calculates the remaining time (frames) until a collision with an object. As a sample video I have a camera moving towards a blackboard.
My approach on this is the following:
detect features…

roboneko42
- 111
- 1
- 1
- 6
2
votes
1 answer
Three-points projection JS
I have a 2 points projection sketch based on two lines intersection algorithms.
For example, if there's a 3D point { x: -4, y: 2, z: -2 } and axes origin is pre-defined, I could find a = {x: -4, y: 2, z: 0} and b = {x: 0, y: 2, z: -2} points and…

toowren
- 85
- 7
2
votes
1 answer
OpenGL: perspective view centered not in the middle of the view?
I have a main scene centered on the center of the viewport
in addition to that I want another small object to be displayed on the corner of the viewport.
The trouble is that when I draw the small object, it is transformed by the main projection…

shoosh
- 76,898
- 55
- 205
- 325
2
votes
1 answer
Moving the perspective vanishing point in Processing
My application has a split screen mode where just half of the screen is used to display the 3d scene. So I want the vanishing point to be placed in the middle of the left half.
I already tried various combinations of camera() and translate() but the…

piaaaac
- 61
- 1
- 9
1
vote
1 answer
Implementation of vanishing point algorithm using opencv
I am trying to make an ARDRONE(a quadrotor) to navigate trhough a maze.
I am using ROS-ELECTRIC and OPENCV. I have implemented hough line transfrom. I need to implement the vanishing point algortihm to make the robot navigate autonomously. I am new…

metal
- 21
- 1
- 3
1
vote
0 answers
Applying gabor filter independant of frontier colors
I'm a set of Gabor filters to an image in order to get the vanishing point. I'm applying four filters with an angle of (0°, 45°, 90° and 135°). I then take the most relevant pixel and compute the angle for this particular pixel depending on the…

Crapsy
- 356
- 2
- 10
1
vote
0 answers
What is maximum of vanishing points for perspective projection?
I am trying to better understand the following regarding vanishing points for perspective projections:
Is it possible to have 4 vanishing points or more?
Is it possible to have infinite points?
Why they can have only their maximum.

Asia Dep
- 47
- 7
1
vote
1 answer
How to find vanishing points from vanishing lines?
I'm trying to find vanishing points of vanishing lines to estimate a depth map for a 2D image.
First, I detected the vanishing lines of the 2D image using hough transform. Here is my code in Matlab:
Img =imread('landscape.bmp'); %read the 2D…

DML2014
- 107
- 1
- 10
1
vote
2 answers
Vanishing point detection from vanishing line using Hough transform
I want to detect vanishing point of an entire image that contain a bunch of vanishing lines..
The task i have completed already described below:
1.Detecting edges of man-made scenes from images
2.From that using hough transform develope/find…

Rahul R Nath
- 11
- 1
- 3
1
vote
1 answer
adding distort with vanishing point projection to CAlayer
I would like to transform a UIView in way that adds a perspective (with two vanishing points) to it (see below).
The reason why I want to do this with a view is because I want the contents of the transformed view to be the cells of a UITableView.
I…

user1612877
- 391
- 1
- 5
- 19
1
vote
2 answers
RotateX a square around its center
I have 3 squares (50 px x 50 px) in a Sprite, one next to each other. Pivot of each is at 0, 0.
1st square X, Y: 0, 0
2nd square X, Y: 50, 0
3rd square X, Y: 100, 0
I would like to rotateX each square around its center-line. I cannot seem to figure…

Fygo
- 4,555
- 6
- 33
- 47
0
votes
0 answers
Image alignment (camera pose rectification) by using vanishing points and gradient descent
Is it possible to use vanishing points and gradient descent to align two images or conduct pose rectification?
The case is, I'm using SLAM and have a prior 3D model. I have two images A and B. Image A is obtained from SLAM and image B is obtained by…

HHL
- 3
- 2