sul-cidr / histonets

Histonets is an application to convert images of scanned maps into digital networks
https://histonets.stanford.edu
Other
20 stars 0 forks source link

Average color counts in composite histogram by number of images in a collection #244

Closed versae closed 7 years ago

versae commented 7 years ago

When returning the histogram to be processed in the palette CLI command, it would help to divide all color counts by the number of images in the collection. Sine the building of the composite histogram can be performed incrementally, it's better to keep this process as it as and only modify the counts before sending the histogram to the palette, no persisting such modification back to the model. See: https://github.com/sul-cidr/histonets-cv/issues/153

It would also make sense to not even send colors with counts below the number of images in the collection.