Method: Vips::Image#polar

Defined in:
lib/vips8/image.rb

#polarImage

Return an image with rectangular pixels converted to polar.

The image can be complex, in which case the return image will also be complex, or must have an even number of bands, in which case pairs of bands are treated as (x, y) coordinates.

Returns:

  • (Image)

    image converted to polar coordinates

See Also:

[View source]

1058
1059
1060
# File 'lib/vips8/image.rb', line 1058

def polar
    Image::run_cmplx(self) {|x| x.complex :polar}
end