Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Get the image size without actually openining it

Hello everyone

i am dealing with very big images(>2gb). i am having some memory problems.

so i wonder if there is way to get the image heigt without loading the images? now i am using cv::imread() and get the width by mat.rows, which is not very convienient for me.

and my second question would be if there is way to open only a portion of images? for this purpose i open the images again with cv::imread() and get the parts with cv::Mat(imageData, lineRange, sampleRange). i want to directly open the specific parts which are define by lineRange, sampleRange( whose are cv::Range).

Thanks

Get the image size without actually openining opening it

Hello everyone

i am dealing with very big images(>2gb). i am having some memory problems.

so i wonder if there is way to get the image heigt without loading the images? now i am using cv::imread() and get the width by mat.rows, which is not very convienient for me.

and my second question would be if there is way to open only a portion of images? for this purpose i open the images again with cv::imread() and get the parts with cv::Mat(imageData, lineRange, sampleRange). i want to directly open the specific parts which are define by lineRange, sampleRange( whose are cv::Range).

Thanks

Get the image size without actually opening it

Hello everyone

i am dealing with very big images(>2gb). i am having some memory problems.

so i wonder if there is way to get the image heigt without loading the images? now i am using cv::imread() and get the width by mat.rows, which is not very convienient for me.

and my second question would be if there is way to open only a portion of images? for this purpose i open the images again with cv::imread() cv::imread() and get the parts with cv::Mat(imageData, lineRange, sampleRange). sampleRange). i want to directly open the specific parts which are define by lineRange, sampleRange( whose are cv::Range).cv::Range).

Thanks

Get the image size without actually opening it

Hello everyone

i am dealing with very big images(>2gb). i am having some memory problems.

so i wonder if there is way to get the image heigt without loading the images? now i am using cv::imread() and get the width by mat.rows, which is not very convienient for me.

and my second question would be if there is way to open only a portion of images? for this purpose i open the images again with cv::imread() and get the parts with cv::Mat(imageData, lineRange, sampleRange). i want to directly open the specific parts which are define by lineRange, lineRange and sampleRange( whose are cv::Range).

Thanks

Get the image size without actually opening it

Hello everyone

i am dealing with very big images(>2gb). i am having some memory problems.

so i wonder if there is way to get the image heigt height without loading the images? now i am using cv::imread() and get the width by mat.rows, which is not very convienient convenient for me.

and my second question would be if there is way to open only a portion of images? for this purpose i open the images again with cv::imread() and get the parts with cv::Mat(imageData, lineRange, sampleRange). i want to directly open the specific parts which are define by lineRange and sampleRange( whose are cv::Range).

Thanks