Class: CV::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/cv/image.rb

Class Method Summary collapse

Class Method Details

.read(filename, flags = nil) ⇒ Object



5
6
7
8
9
# File 'lib/cv/image.rb', line 5

def read(filename, flags=nil)
  filename = filename.to_path if filename.respond_to?(:to_path)
  flags ||= [:any_depth, :any_color]
  read_raw(filename, flags)
end

.read_rawObject



4
# File 'lib/cv/image.rb', line 4

alias_method :read_raw, :read