All Projects → eborboihuc → Rotate_3d

eborboihuc / Rotate_3d

3D Rotation image along specific axes

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Rotate 3d

Mesh mesh align plus
Precisely align, move, and measure+match objects and mesh parts in your 3D scenes.
Stars: ✭ 350 (+332.1%)
Mutual labels:  3d, rotation
Ik
Minimal Inverse Kinematics library
Stars: ✭ 340 (+319.75%)
Mutual labels:  3d, rotation
Vulkust
An engine for Vulkan in Rust, tries to implement modern graphic features. (suspended for now)
Stars: ✭ 64 (-20.99%)
Mutual labels:  3d
Pymeshfix
Python Wrapper for MeshFix: easily repair holes in PyVista surface meshes
Stars: ✭ 75 (-7.41%)
Mutual labels:  3d
Vanta
Animated 3D backgrounds for your website
Stars: ✭ 1,162 (+1334.57%)
Mutual labels:  3d
Vimeo Depth Player
A WebVR volumetric video renderer that uses color-depth based videos hosted on Vimeo.
Stars: ✭ 65 (-19.75%)
Mutual labels:  3d
Unity Plane Mesh Splitter
Unity Plane Mesh Splitter
Stars: ✭ 71 (-12.35%)
Mutual labels:  3d
Aframe Forcegraph Component
Force-directed graph component for A-Frame
Stars: ✭ 60 (-25.93%)
Mutual labels:  3d
Icellr
Single (i) Cell R package (iCellR) is an interactive R package to work with high-throughput single cell sequencing technologies (i.e scRNA-seq, scVDJ-seq, ST and CITE-seq).
Stars: ✭ 80 (-1.23%)
Mutual labels:  3d
Frustum Pointnets
Frustum PointNets for 3D Object Detection from RGB-D Data
Stars: ✭ 1,154 (+1324.69%)
Mutual labels:  3d
Live Tools
Live-Tools is a library project which aims to convert some Android features to LiveData
Stars: ✭ 75 (-7.41%)
Mutual labels:  rotation
React Native Amazing Cropper
Image cropper for react native using Animated API
Stars: ✭ 67 (-17.28%)
Mutual labels:  rotation
Pymesh
Geometry Processing Library for Python
Stars: ✭ 1,135 (+1301.23%)
Mutual labels:  3d
Redgpu
RedGPU - Javascript WebGPU Engine
Stars: ✭ 70 (-13.58%)
Mutual labels:  3d
Loam velodyne
Laser Odometry and Mapping (Loam) is a realtime method for state estimation and mapping using a 3D lidar.
Stars: ✭ 1,135 (+1301.23%)
Mutual labels:  3d
Spatialmath Python
Create, manipulate and convert representations of position and orientation in 2D or 3D using Python
Stars: ✭ 78 (-3.7%)
Mutual labels:  3d
Viewpagertransformer
Viewpager动画,包括渐变,旋转,缩放,3D,立方体等多种酷炫效果动画,实现原理是自定义ViewpagerTransformer,当然你也可以自定义多种动画
Stars: ✭ 62 (-23.46%)
Mutual labels:  3d
Zdog
Flat, round, designer-friendly pseudo-3D engine for canvas & SVG
Stars: ✭ 8,904 (+10892.59%)
Mutual labels:  3d
Toronto 3d
A Large-scale Mobile LiDAR Dataset for Semantic Segmentation of Urban Roadways
Stars: ✭ 69 (-14.81%)
Mutual labels:  3d
Ar Pizza Slicer
5 different shapes!
Stars: ✭ 80 (-1.23%)
Mutual labels:  3d

Perspective Transformation along specific axes

Animation

Rotate along X axis and translate 5 pixel along X axis

Rotate along XZ axis

Prerequisites

  • Linux
  • Python 2.7 with numpy
  • OpenCV 2.4.9

Usage

Change main function with ideal arguments

python demo.py [path of the image] [degree to rotate] ([ideal width] [ideal height])

e.g., Example of rotating an image along yz-axis from 0 to 360 degree with a 5 pixel shift in +X direction

- rotated_img = it.rotate_along_axis(phi = ang, dx = 5)
+ #rotated_img = it.rotate_along_axis(phi = ang, dx = 5)

- #rotated_img = it.rotate_along_axis(phi = ang, gamma = ang)
+ rotated_img = it.rotate_along_axis(phi = ang, gamma = ang)

Then

python demo.py images/000001.jpg 360

Parameters:

it = ImageTransformer(img_path, img_shape)
it.rotate_along_axis(theta=0, phi=0, gamma=0, dx=0, dy=0, dz=0):
  • img_path : the path of image that you want rotated
  • shape : the ideal shape of input image, None for original size.
  • phi : the rotation around the y axis
  • gamma : the rotation around the z axis (basically a 2D rotation)
  • dx : translation along the x axis
  • dy : translation along the y axis
  • dz : translation along the z axis (distance to the image)

Acknowledgments

Code ported and modified from jepson and stackoverflow. Thanks for their excellent work!

Author

Hou-Ning Hu / @eborboihuc

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].