bytedeco/javacv

Image colors getting inverted by leptonica converter

Open

#1.136 aberto em 6 de fev. de 2019

Ver no GitHub
 (7 comments) (0 reactions) (0 assignees)Java (1.583 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (6.985 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

I am using LeptonicaFrameConverter c = new LeptonicaFrameConverter(); Frame f = c.convert(src); BufferedImage img = Java2DFrameUtils.toBufferedImage(f); But the output image has inverted colors, ie 1->0 and vice versa. using it for .tiff format. How can I resole this? TIA.

Guia do colaborador