rotate

From DavinciWiki
Jump to: navigation, search


Description

Uses a 3-shear Paeth algorithm to pixel shift rows and columns to rotate an image.

Arguments and Return Values

Input: Any numeric array

Output: a davinci structure containing the elements data, angle and offset

Usage

Syntax: rotate(obj = VAL, angle = VAL [, ignore = VAL])

  obj    - any numeric array
  angle  - a numeric value in degrees
  ignore - the value in non-data pixels of the projected cube. Default is 0.

Examples

dv> a = read("llama_face.jpg")
640x530x3 array of byte, bip format [1,017,600 bytes]

dv> b = rotate(a,37)
struct, 3 elements
   data: 829x808x3 array of byte, bip format [2,009,496 bytes]
   angle: 37.0000
   offset: 2x1x1 array of int, bsq format [8 bytes]


Images

llama face.jpg llama face rotated.jpg

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 01-10-2008

Personal tools