Ask Your Question

Revision history [back]

Thanks to all. A New function on The way. But i am still thinking how to improve.any suggestion is welcome.

Thanks to all. A New function on The way. way.

Mat imread_reduced( const String& filename, int flags = IMREAD_COLOR, int scale_denom=1 )

usage : like imread() with optional additional parameter that used for scale image

But i am still thinking how to improve.any improve. for example

  • now the function reduces jpeg images 1/2 1/4 1/8 (as main goal of the
    function ) . other formats can be
    reduced 1/n.

  • adding other parameters maybe a good idea like aimed_with , aimed_height
    etc.

any suggestion is welcome.

Thanks to all. A New function on The way.

Mat imread_reduced( const String& filename, int flags = IMREAD_COLOR, int scale_denom=1 )

usage : like imread() with optional additional parameter that used for scale image

But i am still thinking how to improve. for example

  • now the function reduces jpeg images 1/2 1/4 1/8 (as main goal of the
    function ) . other formats can be
    reduced 1/n.

  • adding other parameters maybe a good idea like aimed_with , aimed_height
    etc.

any suggestion is welcome.

Thanks to all. A New function on The way.

Mat imread_reduced( const String& filename, int flags = IMREAD_COLOR, int scale_denom=1 )

usage : like imread() with optional additional parameter that used for scale down the image

But i am still thinking how to improve. for example

  • now the function reduces jpeg images 1/2 1/4 1/8 (as main goal of the
    function ) . other formats can be reduced 1/n.

  • adding other parameters maybe a good idea like aimed_with , aimed_height
    etc.

any suggestion is welcome.

Thanks new feature added to all. A New function on The way.cv::imread as documented

example usage:

Mat imread_reduced( const String& filename, int flags cv::Mat img = IMREAD_COLOR, int scale_denom=1 )

usage : like imread() with optional additional parameter that used for scale down the image
cv::imread( "lena.jpg", IMREAD_REDUCED_COLOR_2 ) // loads image reduced 1/2
cv::Mat img = cv::imread( "lena.jpg", IMREAD_REDUCED_GRAYSCALE_8 ) // loads img reduced 1/8 grayscale

But i am still thinking how to improve. for example

  • now the function reduces jpeg images 1/2 1/4 1/8 (as main goal of the
    function ) . other formats can be reduced 1/n.

  • adding other parameters maybe a good idea like aimed_with , aimed_height
    etc.

any suggestion is welcome.