diff --git a/.gitignore b/.gitignore index df60504..88f8353 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,7 @@ # Maven Target Files target/ + +# Build Name and Version Files +name.info +version.info diff --git a/name.info b/name.info deleted file mode 100644 index a5eac4c..0000000 --- a/name.info +++ /dev/null @@ -1 +0,0 @@ -Image-Tools diff --git a/src/main/java/com/sothr/imagetools/image/ImageType.java b/src/main/java/com/sothr/imagetools/image/ImageType.java new file mode 100644 index 0000000..70665c1 --- /dev/null +++ b/src/main/java/com/sothr/imagetools/image/ImageType.java @@ -0,0 +1,5 @@ +package com.sothr.imagetools.image; + +public enum ImageType { + SingleFrameImage, MultiFrameImage +} diff --git a/src/main/scala/com/sothr/imagetools/dto/ImageHashDTO.scala b/src/main/scala/com/sothr/imagetools/dto/ImageHashDTO.scala new file mode 100644 index 0000000..f16660d --- /dev/null +++ b/src/main/scala/com/sothr/imagetools/dto/ImageHashDTO.scala @@ -0,0 +1,5 @@ +package com.sothr.imagetools.dto + +class ImageHashDTO { + +} diff --git a/src/main/scala/com/sothr/imagetools/image/Image.scala b/src/main/scala/com/sothr/imagetools/image/Image.scala new file mode 100644 index 0000000..004f59a --- /dev/null +++ b/src/main/scala/com/sothr/imagetools/image/Image.scala @@ -0,0 +1,26 @@ +package com.sothr.imagetools.image + +import scala.collection.Traversable +import com.sothr.imagetools.dto.ImageHashDTO + +abstract class Image(val imagePath:String, val thumbnailPath:String) { + + protected val imageType:ImageType = ImageType.SingleFrameImage + + def getHashes():ImageHashDTO + + def isSimilarTo(otherImage:Image):Boolean + + def getSimilarity(otherImage:Image) + + def getSimilar(otherImages:Traversable[Image]):Traversable[Image] + + def getPath():String = { + return this.imagePath + } + + def getThumbnailPath():String = { + return this.thumbnailPath + } + +} diff --git a/version.info b/version.info deleted file mode 100644 index 20d85a3..0000000 --- a/version.info +++ /dev/null @@ -1 +0,0 @@ -0.1.0-DEV-1-13386ab