Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
57 views

I have an image in 3d space of which I know some coordinates. I'd like to use the HTML canvas to re-draw the image into a picture of set width and height. For example when using this image: I know ...
Marvin Brouwer's user avatar
0 votes
1 answer
39 views

I have trouble figuring out what my Idris2 Type- or Compile-Error is about, so I thought I could ask some Idris2 Veterans or Enthusiasts to give me some explanation on how I can make my approach work ...
Conti Weasel Wess's user avatar
1 vote
0 answers
174 views

I'm running the bevy webgpu shader-instancing example with only the following addition: commands.spawn(PbrBundle { mesh: meshes.add(Sphere::new(0.2727).mesh().uv(10, 10)), material: materials....
Krupip's user avatar
  • 5,356
0 votes
0 answers
110 views

I'm developing an SVG viewer, using svg-pan-zoom library to pan and zoom the SVG. What I want What I want in the end is to be able to pan/zoom to a specific point in the SVG and be able to rotate from ...
Makaku00's user avatar
  • 121
1 vote
2 answers
89 views

I have a canvas on which I applied a few transformations (mostly translation to place the origin in the middle and a scale to zoom). I now want to find out if the cursor hovers an element drawn on the ...
SteeveDroz's user avatar
  • 6,164
1 vote
1 answer
332 views

I am working on a matrix-transpose in-place-implementation, with the following idea: Let the indices only take values that correspond to upper triangular entries (since diagonal ones stay constant ...
grube's user avatar
  • 11
0 votes
1 answer
82 views

I've recreated the SVG map from this article The first time you zoom out with the "-" it zooms in, then kind-off correctly itself and happily works both ways! I cant figure out why its ...
fuzzybear's user avatar
  • 2,425
0 votes
1 answer
382 views

I am trying to get the transform matrix from one triangle to another. I am principally concerned about 2D. We will see for 3D later (but open to solutions). I was reading this answer. Now please ...
Kroma's user avatar
  • 1,151
1 vote
0 answers
111 views

CNN is: input: 2 image 128x128: input1 and input2 output: CNN return a Trasformation Matrix: outLayer = Layers.Dense(3 * 2, activation=activations.linear,kernel_initializer="zeos",...
user17702678's user avatar
1 vote
0 answers
308 views

In an Android app I have an object that is created through a custom view. It basically has a rectangular shape. I want to apply a 3D transformation that makes it look like this: In the draw() ...
Ginny's user avatar
  • 63
0 votes
2 answers
392 views

How do you invert 4x3 matrices that are only translation and rotation, no scale? The sort of thing you would use to do an OpenGL Matrix inverse (just without scaling)?
Charles Lohr's user avatar
  • 1,021
1 vote
1 answer
796 views

GOAL I am trying to build a signature pad in SVG. You can view Sample project here. Description So far, it works in Chrome, Edge and Opera as desired but, in Firefox, getScreenCTM() doesn't account ...
Jay's user avatar
  • 332
1 vote
1 answer
2k views

I have an image(mat file) and can access it as a 2D matrix 2*10095. I then made linear algebra work on it to project it onto a plane with normal vector N =[1,2,3]and got the values for the 3D matrix (...
LeonSteinn's user avatar
1 vote
0 answers
114 views

What is the most efficient way to find a non-linear transformation matrix. Conceptually, imagine a a normal image of a person and then the funhouse mirror image of the same person. funhouseimage How ...
E Scott Goodwin's user avatar
1 vote
0 answers
1k views

I have the following image: As you can see, there is a green point there with coordinates (x1,y1). Next, I identify some reference and target points in order to get the corresponding perspective ...
Rodrigo Guinea's user avatar
0 votes
0 answers
65 views

My mathematics (and matlab) is just not up to this and so I humbly ask for your help: I have a model of flow through a annulus. I want to get the radius of the peak flow point and the radius of the ...
Tobes's user avatar
  • 1
0 votes
0 answers
73 views

In Android, I have: 1) matrix (size is 257x257, float[257][257], each element represents a parameter to the image pixel); 2) image(size is nx257, nx257, bytearray[n*257][n*257]n is float, >=1) How ...
candrwow's user avatar
  • 521
1 vote
2 answers
182 views

I have a numpy 2d array and I need to transform it in a way that the first row remains the same, the second row moves by one position to right, (it can wrap around or just have zero padded to the ...
armen's user avatar
  • 463
1 vote
1 answer
4k views

Given a rotation matrix and translation matrix obtained from camera pose estimation of a corner of a charucoBoard, I want to transform one particular corner to the origin by using homogeneous ...
hihihowru's user avatar
1 vote
2 answers
2k views

The goal is to get the Bird's Eye View from KITTI images (dataset), and I have the Projection Matrix (3x4). There are many ways to generate transformation matrices. For Bird's Eye View I have read ...
VíctorV's user avatar
1 vote
1 answer
669 views

I am trying to understand and apply modern OpenGL matrix transformations. I already read a lot of different sources but I am not sure what I am actually doing wrong. The issue I have is also ...
Daniel Bişar's user avatar
2 votes
0 answers
595 views

I've seen this post and tried to do my own function using only the X scaling. fabric.Object.prototype.transform = function (ctx){ var m; if (this.group && !this.group....
JSmith's user avatar
  • 4,852
1 vote
1 answer
560 views

I am trying to Slant/Skew a texture to create some shadows for my game. I have read over this helpful answer that shows this can be done by passing a matrix to spriteBatch.Begin(). Because my ...
Lamar's user avatar
  • 651
0 votes
1 answer
34 views

I am trying to transform a data frame (treating as a vector) with locational data and a value onto a matrix that uses locational data as it's row and column names. (Run snippets to see layout ...
MeridarchGekkota's user avatar
0 votes
0 answers
199 views

I am working on touchscreen app. This app is for a certain industry, but the general ideals are all that is needed to explain issue. To start, im doing a crash course on WPF and am allowing a user to ...
Casey ScriptFu Pharr's user avatar
1 vote
0 answers
713 views

I'm trying to use the right mouse button for moving an image, using a MatrixTransform (I'm using MatrixTransform since I'm also scaling the image). Here's my Xaml code: <Image x:Name="StreamImage"...
Idanis's user avatar
  • 2,008
2 votes
2 answers
3k views

I want to create a full-fledged matrix from a list of the elements that are below the diagonal. The following list contains the elements below the diagonal: And this would be the desired output: Up ...
Adrian's user avatar
  • 784
1 vote
0 answers
322 views

I'm currently working with transformation matrices for game dev. One feature we have is a basic scaling, this is done when a user pinches the screen. Now we know that in order to scale/zoom in a point,...
Hohenheim's user avatar
  • 417
0 votes
1 answer
1k views

I'm trying to do image translation using MATLAB, and the image doesn't move at all. My code is: myPic = imread('pic.jpg'); x = 250; y = 375; trans = affine2d([1 0 0; 0 1 0; x y 1]); outputPic = ...
user311302's user avatar
1 vote
0 answers
517 views

All I want to do is to center myObject in the middle of my UserControl using a method, I'm using MatrixTransform for scaling and rotating. .xaml <Grid> <MyObject x:Name="myObject"> ...
ihisham's user avatar
  • 248
1 vote
0 answers
166 views

I want to do digital image watermarking with Radon Transform in Matlab. But I am facing some problem at the beginning. Suppose I take a matrix and then I perform Radon and Inverse Radon transform on ...
Rakib's user avatar
  • 190
2 votes
1 answer
963 views

I've created a cube in WebGL. I have an animation in mind but am struggling with make it come together. The full code is roughly 150 lns of code so here's a working sample: Working Plunkr Code Here'...
John Abraham's user avatar
  • 18.9k
0 votes
2 answers
1k views

I'm creating code to create a motion path of a controller based on it's keyframed positions in Maya. I've run into a problem when trying to use this code to create a motion path of a parented ...
zaidi92's user avatar
  • 365
3 votes
1 answer
2k views

My linear algebra is weak. WPF is a great system for Rendering different transformations upon an image. However, the standard ScaleTransform will only scale the image's along the x-y axes. When the ...
Alan Wayne's user avatar
  • 5,424
1 vote
1 answer
1k views

Suppose I define a matrix and assign the value in the following way: double A[row * column]; for (int j = 0; j < column; j++){ for (int i = 0; i < row; i++){ A[j*row + i] = ((...
kkk's user avatar
  • 35
0 votes
0 answers
520 views

I am trying to implement a dynamic zoom on a GraphicsPath where the user draws a rectangle to define a zoom area (see selectRect in the code below). When the user releases the mouse the GraphicsPath ...
Pistols's user avatar
0 votes
0 answers
168 views

Suppose I have WPF Image control, with underlying BitmapSource. Several transformations are applied to image, using MatrixTransform (scale and translate). Is there any way I could apply those ...
archil's user avatar
  • 39.6k
3 votes
0 answers
254 views

I am not clear about the procedure of glm::translate(). What's the difference between result = glm::translate(MAT, glm::vec3 vec); and result = glm::translate(glm::mat4(1.0f), glm::vec3 vec) * MAT; ...
YuChang's user avatar
  • 31
2 votes
0 answers
530 views

My goal is to align 3D point clouds with ICP. Somehow I have an error, I believe it is because of the cumulative matrix transformations. For debugging I start with 2D point clouds, I created. For ...
Dominick's user avatar
  • 321
0 votes
1 answer
222 views

I have a 2D Matrix A like: A = [ 1 2 3 4 5 6; 7 8 9 10 11 12; 1 2 3 4 5 6; 7 8 9 10 11 12;] I want to transform this 2D Matrix to a 3D Matrix B with size 2X3X4, like: B(:,:,1) = [1 2 3;...
Jay  Wang's user avatar
0 votes
0 answers
584 views

I am doing 3D transformations using a 4x4 matrix. When performing rotations, for example, I am creating a 4x4 rotation matrix and multiplying the two matrices together. This is working fine. ...
Matt W's user avatar
  • 12.7k
0 votes
1 answer
2k views

When using a 3D matrix transformation, is it possible to use only a matrix for each object to both position, rotate and scale the object? Would I also need to maintain a separate set of location ...
Matt W's user avatar
  • 12.7k
1 vote
0 answers
68 views

I see a lot of people just reading it... Maybe you need some extra info? Comment below and I'll give it! As my previous questions were saying, I'm building a car that will orientate in the room based ...
Mysterious Wolf's user avatar
1 vote
1 answer
1k views

I'm trying to rotate then translate an image with the simple Matrix.translate and Matrix.rotate methods, but for some reason when it's rotated 90º or 270º, if I try to translate it even an inch it ...
Micael Florêncio's user avatar
2 votes
1 answer
800 views

I'm currently working with a RecyclerView which has an horizontal LinearLayout. The RecyclerView occupies all the screen: and I'm finding the way to make a fix transformation of the RecyclerView like ...
Rafael Ruiz Muñoz's user avatar
3 votes
1 answer
1k views

I am trying to position my text model mesh on screen. Using the code below, it draws mesh as the code suggests; with the left of the mesh at the center of the screen. But, I would like to position it ...
CoryU's user avatar
  • 163
1 vote
1 answer
154 views

I have tried using the command estimateGeometricTransform or fitgeotrans but it returns an object of class affine2d, and what I need is to generate a transformation matrix that can plot. Is there any ...
Jac's user avatar
  • 101
8 votes
1 answer
2k views

I have to use the transform matrix to animate transform: scale of an element. I want to scale from 0 to 1. If I use the following code it works properly: .container { width: 200px; height: ...
yacon's user avatar
  • 1,112
4 votes
1 answer
1k views

(With this question I'm trying to investigate an idea I had for solving this other one) If I have a standard 2D array of dimensions width and height in memory, I can turn that into a 1D array of ...
Markus A.'s user avatar
  • 12.9k
0 votes
0 answers
341 views

I am working ImageView and Matrix translation right now. I try translating an image with this code. ImageView view = (ImageView) findViewById(R.id.imageView); view.setScaleType(ImageView.ScaleType....
Kuro13's user avatar
  • 105