Browse Source

Started working on a rough Image class to handle storing and comparing images, along with hashing.

master
Drew Short 11 years ago
parent
commit
2ebdd39dfc
  1. 4
      .gitignore
  2. 1
      name.info
  3. 5
      src/main/java/com/sothr/imagetools/image/ImageType.java
  4. 5
      src/main/scala/com/sothr/imagetools/dto/ImageHashDTO.scala
  5. 26
      src/main/scala/com/sothr/imagetools/image/Image.scala
  6. 1
      version.info

4
.gitignore

@ -14,3 +14,7 @@
# Maven Target Files
target/
# Build Name and Version Files
name.info
version.info

1
name.info

@ -1 +0,0 @@
Image-Tools

5
src/main/java/com/sothr/imagetools/image/ImageType.java

@ -0,0 +1,5 @@
package com.sothr.imagetools.image;
public enum ImageType {
SingleFrameImage, MultiFrameImage
}

5
src/main/scala/com/sothr/imagetools/dto/ImageHashDTO.scala

@ -0,0 +1,5 @@
package com.sothr.imagetools.dto
class ImageHashDTO {
}

26
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
}
}

1
version.info

@ -1 +0,0 @@
0.1.0-DEV-1-13386ab
Loading…
Cancel
Save