You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
903 B

package com.sothr.imagetools.hash
import com.sothr.imagetools.hash.util.TimingUtil
import grizzled.slf4j.Logging
import org.scalatest.{BeforeAndAfter, FunSuite, Inside, Inspectors, Matchers, OptionValues}
abstract class HashServiceBaseTest extends FunSuite with Matchers with OptionValues with Inside with Inspectors with BeforeAndAfter with Logging with TimingUtil {
// Define the number of runs the benchmarking tests should use
val benchmarkRuns = 10
// The Standard Parameters Used To Benchmark Perceptual hashes
val ahashSetting = new HashSetting("AHash", true, 8, 8, 0.75f)
val dhashSetting = new HashSetting("DHash", true, 8, 8, 0.85f)
val phashSetting = new HashSetting("PHash", true, 32, 8, 1.0f)
// Base Test Images
val LargeSampleImage1 = "sample/sample_01_large.jpg"
val MediumSampleImage1 = "sample/sample_01_medium.jpg"
val SmallSampleImage1 = "sample/sample_01_small.jpg"
}