Questions tagged [2d-3d-conversion]

Process of transforming from 2D ("flat") to 3D form.

27 questions
13
votes
5 answers

Convert 2d images to 3d model

I need to display 3d sculptures in my application, but all I will have initially is 2d images of sculpture from different angles( angle and count of images is under our control) 1. Is there any library which can do that, e.g. take 8 images from all…
Anurag Uniyal
  • 85,954
  • 40
  • 175
  • 219
10
votes
2 answers

Converting 2D point to 3D location

I have a fixed camera with known cameraMatrix and distCoeffs. I also have a chessboard which is fixed too, and transform and rotation vector are also calculated using solvePnP. I'm wondering how is possible to get 3D location of a 2D point on the…
EBAG
  • 21,625
  • 14
  • 59
  • 93
10
votes
2 answers

Ray Casting with different height size

I have a java project who makes the "windows' maze" and use the ray casting algorithm. Here's a screenshot : Like you can see all the walls have the same height size. I would like to do the same but with different height size private void…
Jack
  • 405
  • 4
  • 11
5
votes
1 answer

Calculating 3D world point from 2D image point using OpenCV

I'm developing application for iOS. I'm using the camera matrix according to the book Mastering OpenCV. In my scenario I have a well known box. I know its real dimensions and I know exactly its corner's pixels. Using this information I calculate the…
user2743760
  • 201
  • 2
  • 9
3
votes
1 answer

How to convert 2D DICOM slices to 3D image in Python

I am currently sitting on an task in which I need to plot DICOM slices into one 3D model using NumPy, Matplotlib, (Marchingcubes, Triangulation or Volumemodel) I have tried the method from this website :…
3
votes
2 answers

Automatic images translation to 3d model

I'm quite interested in automatic images translation to 3d models. Not really for commercial product, but from the point of possible academic research and implementation. What I'd like to achieve is almost transparent for user process of…
fabulaspb
  • 1,238
  • 8
  • 9
3
votes
1 answer

2D to 3D conversion using Dubois Anaglyph algorithm

Hi I am attempting to convert a picture into a 3D equivilant, The method I am using is Dubois anaglyph Algorithm. My understanding is that we take each pixel value of the left and right image and perform a matrix multiplication on those values to…
user2306539
  • 31
  • 1
  • 2
3
votes
1 answer

Searching library for a 3D fft based convolution

I have a large 3D matrix and a small 3D matrix which I want to use 3D fft based convolution to find the best match for my small 3D matrix in the larger matrix. Do you have any code in C++ that can do it?
Sam
  • 939
  • 5
  • 14
  • 41
2
votes
1 answer

Converting 2D screen coordinates to 3D Coordinates in PyQT

I am using PyQT for one of the first times, and I'm having trouble figuring out where a mouse click is in 3D space. Obviously it is not a perfect 1-to-1 mapping, but let's say that I click on a location (x, y, 0) on my QtGui. How can I transform…
user650261
  • 2,115
  • 5
  • 24
  • 47
2
votes
1 answer

Translation of (x, y) coordinates into (x, y, z) for move robot arm

I have to make NAO robot draw some shapes on a whiteboard starting from (x, y) coordinates of each point of the shape. So I have for example list of (x, y) coordinates of a square: square = [[251, 184], #point 1 [22, 192], #point 2 …
Francesco Sgaramella
  • 1,009
  • 5
  • 21
  • 39
1
vote
1 answer

Height of a slope at a point's position (3D collision)?

I'm trying my best to describe it: I've got a 3D sloped surface, and I wanna know the height(Z) it is at any given point inside of it. I have the surface's vertices' 3D positions, and the point's 2D position. How to know what should be the height it…
1
vote
1 answer

How to use Pandas dataframe transform 2D dataset into 3D?

I have a tropical cyclone dataset like this: TC dataset I want to group the dataset according to the column 'TC_name', i.e. one TC one group, but 'TC_name' may be identical for different years and the same TC may travel interannually, so groupby()…
1
vote
1 answer

Mapping 2D image onto 3D Scan Data

Given a 2D image of blade and its corresponding 3D Scan data in stl/ply/pcd format. Is it possible to map the 2D image onto the 3D scan data using python? Or is it possible that we extract the color information from the 2D Image and map the color…
1
vote
4 answers

Convert a 2D image to a 3D model

Is there any way of converting a 2D image captured by a normal web camera to be converted into a 3D model? I'm using C# so any algorithm based in C# would be helpful.
Kasun Peiris
  • 109
  • 1
  • 3
  • 8
1
vote
0 answers

TypeError: init() missing 1 required positional argument: 'kernel_size'

This is the error I get on my program. anyone can say what is the problem of my code. 32 filters input shape 100 rows 100 cols 15 patchsize --------------------------------------------------------------------------- TypeError …
1
2