segment-geospatial icon indicating copy to clipboard operation
segment-geospatial copied to clipboard

'sample_format == SAMPLEFORMAT_IEEEFP || sample_format == SAMPLEFORMAT_INT'

Open gabengcuinirenne opened this issue 1 year ago • 1 comments

Description

[ERROR:[email protected]] global loadsave.cpp:440 cv::imread_ imread_('F:\code\imges\tq_overall_cut.tif'): can't read header: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\grfmt_tiff.cpp:350: error: (-2:Unspecified error) in function 'bool __cdecl cv::TiffDecoder::readHeader(void)'

: 'sample_format == SAMPLEFORMAT_IEEEFP || sample_format == SAMPLEFORMAT_INT' where '(int)sample_format' is 1

I'm getting this error, I'm entering a drone image, how can I fix this problem?

gabengcuinirenne avatar Jul 18 '24 02:07 gabengcuinirenne

Make sure the image is integer 8-bit

giswqs avatar Jul 18 '24 02:07 giswqs