Class: DLIB::Image
- Inherits:
-
Object
- Object
- DLIB::Image
- Defined in:
- lib/dlib.rb
Instance Method Summary collapse
-
#initialize(filename) ⇒ Image
constructor
A new instance of Image.
- #initialize_raw ⇒ Object
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_raw ⇒ Object
12 |
# File 'lib/dlib.rb', line 12 alias_method :initialize_raw, :initialize |