Skip to content

Commit

Permalink
Fixes compilation error.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralph Gasser <[email protected]>
  • Loading branch information
ppanopticon committed Aug 21, 2024
1 parent a0e2f76 commit d1c29c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ class AverageColorExtractor(input: Operator<Retrievable>, analyser: AverageColor
*/
override fun extract(retrievable: Retrievable): List<FloatVectorDescriptor> {
val content = retrievable.content.filterIsInstance<ImageContent>()
return AverageColor.analyse(content).map { it.copy(retrievableId = retrievable.id, field = this@AverageColorExtractor.field) }
return (this.analyser as AverageColor).analyse(content).map { it.copy(retrievableId = retrievable.id, field = this@AverageColorExtractor.field) }
}
}

0 comments on commit d1c29c3

Please sign in to comment.