1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Misc. modules/ cont. pt2

Found via `codespell`
This commit is contained in:
luz.paz
2018-02-13 11:28:11 -05:00
parent 252e871a8b
commit d05714995c
75 changed files with 195 additions and 195 deletions
+1 -1
View File
@@ -469,7 +469,7 @@ bool GdalDecoder::readHeader(){
return false;
}
//extract the driver infomation
//extract the driver information
m_driver = m_dataset->GetDriver();
// if the driver failed, then exit
+3 -3
View File
@@ -517,7 +517,7 @@ bool PAMDecoder::readData( Mat& img )
/* the case where data fits the opencv matrix */
if (m_sampledepth == img.depth() && target_channels == m_channels && !bit_mode) {
/* special case for 16bit images with wrong endianess */
/* special case for 16bit images with wrong endianness */
if (m_sampledepth == CV_16U && !isBigEndian())
{
for (y = 0; y < m_height; y++, data += imp_stride )
@@ -564,7 +564,7 @@ bool PAMDecoder::readData( Mat& img )
{
m_strm.getBytes( src, src_stride );
/* endianess correction */
/* endianness correction */
if( m_sampledepth == CV_16U && !isBigEndian() )
{
for( x = 0; x < src_elems_per_row; x++ )
@@ -698,7 +698,7 @@ bool PAMEncoder::write( const Mat& img, const std::vector<int>& params )
if (img.depth() == CV_8U)
strm.putBytes( data, stride*height );
else if (img.depth() == CV_16U) {
/* fix endianess */
/* fix endianness */
if (!isBigEndian()) {
for( y = 0; y < height; y++ ) {
memcpy( buffer, img.ptr(y), stride );
+1 -1
View File
@@ -205,7 +205,7 @@ int RGBE_ReadHeader(FILE *fp, int *width, int *height, rgbe_header_info *info)
return rgbe_error(rgbe_read_error,NULL);
if (buf[0] == '\n') // end of the header
break;
else if (buf[0] == '#') // commment
else if (buf[0] == '#') // comment
continue;
else if (strcmp(buf,"FORMAT=32-bit_rle_rgbe\n") == 0)
hasFormat = true;