Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

dpi is only used in printing, not at all in computer-vision, where this is irrelevant.

imread() won't read this information, and imwrite() won't save it (or, a dummy value).

so, in short - no it is not possible. you'll have to work with "pixels" as dimensions, not dpi.

dpi is only used in printing, not at all in computer-vision, where this is irrelevant.

imread() won't read this information, and imwrite() won't save it (or,

( the 96 dpi you're seing in your image editor are a dummy value).value ).

so, in short - no it is not possible. you'll have to work with "pixels" as dimensions, dimensions here, not dpi.

dpi is only used in printing, not at all in computer-vision, where this is irrelevant.

imread() won't read this information, and imwrite() won't save it

( the 96 dpi you're seing in your image editor are a dummy value ).

so, in short - no it is not possible. you'll have to work with "pixels" as dimensions here, not dpi.

(maybe opencv is the wrong library for you ?)