Embed vector field in bigger array
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Francois Fohl
el 14 de Sept. de 2021
Respondida: KSSV
el 14 de Sept. de 2021
In order to undistort an image for a special purpose, I used displacement vectors.
The vector field isn't covering the entire image. Problem is the following: To apply the vectors on the image the sizes need to be identical.
Vector field: 2000x1200
Image: 6000 x 4000
Is there a way to embed the vector field in a bigger array, so that it can be applied correctly to the image. Maybe it could be embedded in a matrix of 0?
The region of interest is only the 2000x1200 field. Extrapolating the vector field to 6000x4000 doesn't deliver the desired result, neither croping the image to 2000x1200.
0 comentarios
Respuesta aceptada
KSSV
el 14 de Sept. de 2021
Read about padarray.
Other option:
A = rand(4) ;
B = zeros(10) ;
B(3:6,3:6) = A
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!