class CherryPickingMoments::Image
Attributes
filepath[R]
following_distance[RW]
Public Class Methods
new(filepath)
click to toggle source
# File lib/cherry_picking_moments/image.rb, line 7 def initialize(filepath) @filepath = filepath end
Public Instance Methods
distance_from(image)
click to toggle source
# File lib/cherry_picking_moments/image.rb, line 11 def distance_from(image) phashion_image.distance_from(image.phashion_image) end
phashion_image()
click to toggle source
# File lib/cherry_picking_moments/image.rb, line 15 def phashion_image @phashion_image ||= Phashion::Image.new(@filepath) end