Questions tagged [matlab]
10 questions
4
votes
2 answers
Calculating the gradient of a triangular mesh
This question is regarding a homework assignment (want to be upfront because many people on stack exchange don't like helping with homework questions).
I have a triangular mesh, which is defined by a set of vertices and a set of faces.
I want to…
Mark.F
- 143
- 1
- 5
4
votes
1 answer
DLT algorithm (4+ points) not working, what's missing?
I'm doing a direct implementation of DLT algorithm but I can't figure out why, at the end the matrix H I get doesn't (even remotely) produce x2 = H*x1
The algorithm is not that complicated so I can't see what I'm missing at this stage.
%%point…
Kronephon
- 243
- 1
- 6
4
votes
0 answers
Creating an Object Orientated Bounding Volume
I'm attempting to test out the maths behind bounding volume algorithms (prior to ray tracing) using MATLAB.
So far, I have successfully created the relatively trivial axis aligned bounding volume, and I believe I have successfully created a bounding…
davidhood2
- 243
- 1
- 11
4
votes
2 answers
Correct view-space transform
I am attempting to model a simple graphics pipeline (i.e. Local->Word->View->Screen->2D spaces).
I've been looking at the algorithm required to transform from world to view-space and using the following transform
Although I have been using U,V,N,C…
davidhood2
- 243
- 1
- 11
3
votes
1 answer
Choosing & Using a Projection Matrix
I'm looking into the graphics pipeline processes and at the moment in particular, perspective projection matrices.
After looking in several different sources, and across the breadth of previous questions such as How does a projection Matrix work? |…
davidhood2
- 243
- 1
- 11
2
votes
3 answers
What exactly is the orthographic projection used by Matlab
I would like to imitate the orthographic projection that Matlab uses by default:
Matlab View Projections
and
Matlab camproj
It seems similar to the "Trimetric" projection described here:
Wikipedia on Orthographic Projection
see the picture…
Simon
- 173
- 2
- 7
1
vote
1 answer
Appropriate filter steps for resolving a droplet pixel
I have a series of images obtained from a microscope as follows
I need to create a series of filters that would isolate the centre section on the yellow droplet.(This is highlighted by the bright yellow circle area), and remove all the noise and…
Fowaz Ikram
- 113
- 2
1
vote
0 answers
Applying 3d transformation to cuboid
I have the 8 vertices of a cuboid (red points)(XYZvox) with known distance in millimetres (vox to mm) between each vertex which I transform in 3d space using the 4d transformation matrix (M). I am really struggling to work out the new voxel to…
2one
- 111
- 2
1
vote
0 answers
Calculating inverse disparity of a stereo image
I have code, which for the sake of argument, looks like the code here:
bestMatchIndex = sortedIndeces(1, 1);
% Convert the 1-based index of this block back into an offset.
% This is the final disparity value produced by basic block matching.
d =…
Ken Y-N
- 111
- 2
0
votes
0 answers
How to do keyframe interpolation on matlab?
I want to do keyframe interpolation in matlab.
If I understand correctly, it uses splines to approximate the the motion of specific pixel points within the frames(through transforms). Correct me if I'm wrong.
I tried looking but there are no…