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.
2 | No.2 Revision |
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.
3 | No.3 Revision |
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 ?)