Skip to content

Use CIfilter to rotate equirectangular image according to roll,pitch and yaw degrees

Notifications You must be signed in to change notification settings

spincle/equirectangular-image-rotation-for-iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

equirectangular-image-rotation

objective-c template for rotating equirectangular image

Original image

screenshot

After roll,yaw and pitch rotation

screenshot

A spherical panorama that uses an equirectangular projection can be rotated by converting the uv's coodinate to spherical coordinate system and then to cartesian. The coordinates are appled by a 3x3 rotation matrix according to roll, yaw and pitch. Everything is then converted back to uv and sampled from the original texture.

Website reference: https://en.wikipedia.org/wiki/Rotation_matrix

The method used

-(UIImage*) applyRectRotation:(UIImage*) image

The class used

customFilter.h
customFilter.m

About

Use CIfilter to rotate equirectangular image according to roll,pitch and yaw degrees

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published