Class: DLIB::Image

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

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ Image

Returns a new instance of Image.



13
14
15
16
17
18
# File 'lib/dlib.rb', line 13

def initialize(filename)
  if filename.respond_to?(:to_path)
    filename = filename.to_path
  end
  initialize_raw(filename)
end

Instance Method Details

#initialize_rawObject



12
# File 'lib/dlib.rb', line 12

alias_method :initialize_raw, :initialize