日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

python opencv imread()函数 (从文件加载图像)

發布時間:2025/3/19 python 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python opencv imread()函数 (从文件加载图像) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
def imread(filename, flags=None): # real signature unknown; restored from __doc__"""imread(filename[, flags]) -> retval. @brief Loads an image from a file. 從文件加載圖像。. . @anchor imread. . The function imread loads an image from the specified file and returns it. If the image cannot be. read (because of missing file, improper permissions, unsupported or invalid format), the function. returns an empty matrix ( Mat::data==NULL ).該函數imread從指定的文件加載圖像并返回它。 如果無法讀取圖像(由于缺少文件,權限不正確,格式不受支持或格式無效),該函數將返回一個空矩陣(Mat :: data == NULL)。. . Currently, the following file formats are supported: 當前,支持以下文件格式:. . - Windows bitmaps - \*.bmp, \*.dib (always supported). - JPEG files - \*.jpeg, \*.jpg, \*.jpe (see the *Note* section). - JPEG 2000 files - \*.jp2 (see the *Note* section). - Portable Network Graphics - \*.png (see the *Note* section). - WebP - \*.webp (see the *Note* section). - Portable image format - \*.pbm, \*.pgm, \*.ppm \*.pxm, \*.pnm (always supported). - PFM files - \*.pfm (see the *Note* section). - Sun rasters - \*.sr, \*.ras (always supported). - TIFF files - \*.tiff, \*.tif (see the *Note* section). - OpenEXR Image files - \*.exr (see the *Note* section). - Radiance HDR - \*.hdr, \*.pic (always supported). - Raster and Vector geospatial data supported by GDAL (see the *Note* section). . @note. - The function determines the type of an image by the content, not by the file extension.該功能通過內容而不是文件擴展名確定圖像的類型. - In the case of color images, the decoded images will have the channels stored in **B G R** order.對于彩色圖像,解碼后的圖像將具有以** B G R **順序存儲的通道。. - When using IMREAD_GRAYSCALE, the codec's internal grayscale conversion will be used, if available.. Results may differ to the output of cvtColor()使用IMREAD_GRAYSCALE時,將使用編解碼器的內部灰度轉換(如果有)。 結果可能與cvtColor()的輸出不同. - On Microsoft Windows\* OS and MacOSX\*, the codecs shipped with an OpenCV image (libjpeg,. libpng, libtiff, and libjasper) are used by default. So, OpenCV can always read JPEGs, PNGs,. and TIFFs. On MacOSX, there is also an option to use native MacOSX image readers. But beware. that currently these native image loaders give images with different pixel values because of. the color management embedded into MacOSX.在Microsoft Windows \ * OS和MacOSX \ *上,默認使用OpenCV映像附帶的編解碼器(libjpeg,libpng,libtiff和libjasper)。 因此,OpenCV始終可以讀取JPEG,PNG和TIFF。 在MacOSX上,還可以選擇使用本機MacOSX圖像讀取器。 但是請注意,由于MacOSX中嵌入了色彩管理,當前這些本機圖像加載器會為圖像提供不同的像素值。. - On Linux\*, BSD flavors and other Unix-like open-source operating systems, OpenCV looks for. codecs supplied with an OS image. Install the relevant packages (do not forget the development. files, for example, "libjpeg-dev", in Debian\* and Ubuntu\*) to get the codec support or turn. on the OPENCV_BUILD_3RDPARTY_LIBS flag in CMake.在Linux \ *,BSD版本和其他類似Unix的開源操作系統上,OpenCV會尋找OS映像隨附的編解碼器。 安裝相關的軟件包(不要忘記在Debian \ *和Ubuntu \ *中忘記開發文件,例如“ libjpeg-dev”)以獲得編碼解碼器支持或在CMake中打開OPENCV_BUILD_3RDPARTY_LIBS標志。. - In the case you set *WITH_GDAL* flag to true in CMake and @ref IMREAD_LOAD_GDAL to load the image,. then the [GDAL](http://www.gdal.org) driver will be used in order to decode the image, supporting. the following formats: [Raster](http://www.gdal.org/formats_list.html),. [Vector](http://www.gdal.org/ogr_formats.html).如果您在CMake中將* WITH_GDAL *標志設置為true并使用@ref IMREAD_LOAD_GDAL加載圖像,則將使用[GDAL](http://www.gdal.org)驅動程序對圖像進行解碼,以支持 以下格式:[Raster](http://www.gdal.org/formats_list.html)、[Vector](http://www.gdal.org/ogr_formats.html)。. - If EXIF information are embedded in the image file, the EXIF orientation will be taken into account. and thus the image will be rotated accordingly except if the flag @ref IMREAD_IGNORE_ORIENTATION is passed.如果將EXIF信息嵌入到圖像文件中,則將考慮EXIF方向,因此,除非傳遞了@ref IMREAD_IGNORE_ORIENTATION標志,否則圖像將相應旋轉。. - Use the IMREAD_UNCHANGED flag to keep the floating point values from PFM image.使用IMREAD_UNCHANGED標志保留PFM圖像中的浮點值。. - By default number of pixels must be less than 2^30. Limit can be set using system. variable OPENCV_IO_MAX_IMAGE_PIXELS默認情況下,像素數必須小于2 ^ 30。 可以使用系統變量OPENCV_IO_MAX_IMAGE_PIXELS設置限制. . @param filename Name of file to be loaded. 要加載的文件名。. @param flags Flag that can take values of cv::ImreadModes 可以采用cv :: ImreadModes值的標志"""pass

flags,cv::ImreadModes請見:
python opencv imread(filename, flags=None) 讀取圖像 flags cv::ImreadModes 參數上哪看去?

總結

以上是生活随笔為你收集整理的python opencv imread()函数 (从文件加载图像)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 久久影院一区二区 | 成人免费在线网站 | 精品免费看 | 国产露出视频 | 美女扒开尿口给男人捅 | 亚洲啪啪免费视频 | 日韩成人一区二区三区 | 谁有毛片网站 | 午夜日韩 | 精品视频免费在线观看 | 国产高清一区二区三区四区 | 日本熟妇成熟毛茸茸 | 欧美激情999 | 欧美日韩激情在线观看 | www.69视频 | 欧美日韩在线播放三区四区 | 国产欧美熟妇另类久久久 | 日韩精品伦理 | 久久久99久久 | 少妇精品无码一区二区三区 | 91成人网页| 国产老头老太作爱视频 | 亚洲高清无码久久久 | 国产人妻一区二区三区四区五区六 | 粉色视频免费观看 | av资源免费看 | 久久综合干 | 国产一区二区视频在线观看免费 | 噜噜噜久久,亚洲精品国产品 | 国产性自拍 | 精品国产一区二 | 日韩aaa | 欧美男女交配视频 | 91精品久久久久久综合五月天 | 91系列在线观看 | 男人日女人网站 | 中文字幕日韩精品无码内射 | 欧美亚洲综合一区 | 成人三级电影网站 | 91视频免费在线 | 精品无码一区二区三区免费 | 欧洲视频在线观看 | 伦理欧美| 国产九色在线播放九色 | 国产日韩一区二区在线观看 | 黄色免费在线看 | 亚洲视频在线免费看 | 午夜免费视频 | 老司机福利av | 亚洲精品aⅴ | 欧美日韩国产在线一区 | 精品99久久久久成人网站免费 | 无码精品黑人一区二区三区 | 欧美日韩高清在线播放 | 黄色片视频网站 | 黑人巨大精品欧美一区二区 | 成人影院免费 | 国产一级在线 | 亚洲精品中文字幕在线观看 | 国产一二三级 | av在线超碰| 精品无码一级毛片免费 | 亚洲第一页在线观看 | 2020亚洲男人天堂 | 国产做受高潮动漫 | 精品国产69 | 在线观看av大片 | 婷婷综合久久 | 丁香激情网| 欧美人体一区二区 | 亚洲破处视频 | 男女裸体无遮挡做爰 | 日本一区视频在线观看 | 美女av影院 | 国产绿帽刺激高潮对白 | 国产主播自拍av | 影音先锋久久久久av综合网成人 | 久久免费黄色 | 欧美日韩中文在线观看 | 午夜寂寞影院在线观看 | 精品久久ai | 野花中文免费观看6 | 国产在线视视频有精品 | 91video| 九色视频网站 | 全黄一级播放 | av网站在线免费播放 | 久久久久高清 | 成年人在线观看 | 久久久久99精品成人片我成大片 | 精品产国自在拍 | 久久草视频在线 | 午夜爱爱网站 | 丰满人妻一区二区三区精品高清 | а√天堂中文在线资源8 | 国产伦精品视频一区二区三区 | 日日摸夜夜添狠狠添欧美 | 一级片亚洲| av网址观看 |