当前位置: 首页 > news >正文

wordpress主题 外贸网站wordpress安装后输入帐号登不进去

wordpress主题 外贸网站,wordpress安装后输入帐号登不进去,企业wordpress主题下载地址,有找猎聘网站做简历优化的OpenCV颜色空间实战 〇、Coding实战内容一、imread1.1 函数介绍1.2 Flags1.3 Code 二. 色彩空间2.1 获取单色空间2.2. HSV、YUV、RGB2.3. 不同颜色空间应用场景 〇、Coding实战内容 OpenCV imread()方法不同的flags差异性获取单色通道【R通道、G通道、B通道】HSV、YUV、RGB 一… OpenCV颜色空间实战 〇、Coding实战内容一、imread1.1 函数介绍1.2 Flags1.3 Code 二. 色彩空间2.1 获取单色空间2.2. HSV、YUV、RGB2.3. 不同颜色空间应用场景 〇、Coding实战内容 OpenCV imread()方法不同的flags差异性获取单色通道【R通道、G通道、B通道】HSV、YUV、RGB 一、imread 1.1 函数介绍 /** The function imread loads an image from the specified file and returns it param filename Name of file to be loaded. param flags Flag that can take values of cv::ImreadModes **/ CV_EXPORTS_W Mat imread( const String filename, int flags IMREAD_COLOR );1.2 Flags // enum ImreadModes { // IMREAD_UNCHANGED -1, //! If set, return the loaded image as is (with alpha channel, otherwise it gets cropped). Ignore EXIF orientation. // IMREAD_GRAYSCALE 0, //! If set, always convert image to the single channel grayscale image (codec internal conversion). // IMREAD_COLOR 1, //! If set, always convert image to the 3 channel BGR color image. // IMREAD_ANYDEPTH 2, //! If set, return 16-bit/32-bit image when the input has the corresponding depth, otherwise convert it to 8-bit. // IMREAD_ANYCOLOR 4, //! If set, the image is read in any possible color format. // IMREAD_LOAD_GDAL 8, //! If set, use the gdal driver for loading the image. // IMREAD_REDUCED_GRAYSCALE_2 16, //! If set, always convert image to the single channel grayscale image and the image size reduced 1/2. // IMREAD_REDUCED_COLOR_2 17, //! If set, always convert image to the 3 channel BGR color image and the image size reduced 1/2. // IMREAD_REDUCED_GRAYSCALE_4 32, //! If set, always convert image to the single channel grayscale image and the image size reduced 1/4. // IMREAD_REDUCED_COLOR_4 33, //! If set, always convert image to the 3 channel BGR color image and the image size reduced 1/4. // IMREAD_REDUCED_GRAYSCALE_8 64, //! If set, always convert image to the single channel grayscale image and the image size reduced 1/8. // IMREAD_REDUCED_COLOR_8 65, //! If set, always convert image to the 3 channel BGR color image and the image size reduced 1/8. // IMREAD_IGNORE_ORIENTATION 128 //! If set, do not rotate the image according to EXIFs orientation flag. // };常用的有三种 a. -1 IMREAD_UNCHANGED忽视alpha通道 b. 0 IMREAD_GRAYSCALE灰度图 c. 1 IMREAD_COLOR 不填默认值且格式为BGR 1.3 Code assign_2.cpp #include opencv2/opencv.hpp #include iostream #include vector #include stringusing namespace cv; using namespace std;#include opencv2/opencv.hpp #include iostream #include vector #include string using namespace cv; using namespace std;int main(int argc, char *argv[]) {std::string filePath std::string(__FILE__);size_t pos filePath.find_last_of(/\\);std::string rootPath filePath.substr(0, pos); // string path string(__BASE_FILE__)/img.webp;cout rootPath;//IMREAD_COLOR BGRMat image imread(rootPath/img.webp,IMREAD_COLOR);//IMREAD_UNCHANGED, 无alpha通道Mat image1 imread(rootPath/img.webp,IMREAD_UNCHANGED);//IMREAD_GRAYSCALE 灰度图Mat image2 imread(rootPath/img.webp,IMREAD_GRAYSCALE);namedWindow(imread imread_unchanged); // 创建一个标题为 hello 的窗口imshow(hello, image); // image1, image2 //在窗口 hello 中显示图片waitKey(0); // 等待用户按下键盘destroyWindow(hello); // 销毁窗口 helloreturn 0; }输出结果 二. 色彩空间 2.1 获取单色空间 #include opencv2/opencv.hpp #include iostream #include vector #include string using namespace cv; using namespace std;int main(int argc, char *argv[]) {/*** 二、色彩空间* *///红色vectorMat channels;split(image, channels);//bgrchannels[0] Mat::zeros(image.rows, image.cols, CV_8UC1); // bluechannels[1] Mat::zeros(image.rows, image.cols, CV_8UC1); // greenMat red;merge(channels, red);//蓝色vectorMat channels_1;split(image, channels_1);//bgrchannels[1] Mat::zeros(image.rows, image.cols, CV_8UC1); // greenchannels[2] Mat::zeros(image.rows, image.cols, CV_8UC1); // redMat blue;merge(channels, blue);//绿色vectorMat channels_2;split(image, channels_2);//bgrchannels[0] Mat::zeros(image.rows, image.cols, CV_8UC1); // greenchannels[2] Mat::zeros(image.rows, image.cols, CV_8UC1); // redMat green;merge(channels, green); }输出结果 2.2. HSV、YUV、RGB int main(int argc, char *argv[]) {std::string filePath std::string(__FILE__);size_t pos filePath.find_last_of(/\\);std::string rootPath filePath.substr(0, pos); // string path string(__BASE_FILE__)/img.webp;cout rootPath;Mat image imread(rootPath/img.webp,IMREAD_COLOR);/*** 三、色彩空间**/Mat hsv;cvtColor(image,hsv,COLOR_BGR2HSV);Mat rgb;cvtColor(image,hsv,COLOR_BGR2RGB);Mat yuv;cvtColor(image,yuv,COLOR_BGR2YUV);namedWindow(hsv); imshow(hsv, hsv); waitKey(0); destroyWindow(hsv); return 0; }输出结果 颜色空间 具体可搜索wikipedia有很详细的介绍 1. HSV vs HSBhttps://en.wikipedia.org/wiki/HSL_and_HSV 2. YUV可参考本人以前的一篇文章https://blog.csdn.net/Scott_S/article/details/118525159?spm1001.2014.3001.55012.3. 不同颜色空间应用场景 RGB视频监视器彩色摄像机HSV [色调、饱和度、亮度]彩色处理为目的CMYK 印刷行业如果用过小米照片打印机就会发现一张照片需要渲染4次按照如下流程 Cyan蓝青色magenta品红、杨红Yellow:黄色Key: (black) YUV 电视信号传输占用极少的带宽
http://www.w-s-a.com/news/379008/

相关文章:

  • 陕西省西安市建设局网站永登网站设计与建设
  • 广东网站设计招工.免费咨询贷款
  • 做试题网站在线做c 题的网站
  • 青岛发现51例阳性南京专业网站优化公司
  • 南昌建站如何上wordpress
  • 洛阳网站建设优惠公司建筑企业上市公司有哪些
  • 营销型网站建设营销型网站建设手机网站设计需要学什么
  • 在线视频网站 一级做爰片南通网站建设找哪家
  • 网站优化文章东莞专业网站建设价钱
  • 哈尔滨网页设计网站模板泰兴建设局网站
  • 响应式网站设计公司报纸做垂直门户网站
  • 陕西旭泽建设有限公司网站企业网站建设软件需求分析
  • 上海公司网站建设方案中企动力西安分公司
  • dedecms网站后台怎样才能上百度
  • 云互联的网站名字亚马逊雨林生物
  • 电商网站功能企查查企业信息查询网
  • 特色网站建设中国住房和城乡建设局官网
  • 长春市住房城乡建设厅网站做白酒网站
  • 自己的网站怎么做的成品免费ppt网站
  • 番禺区网站建设哪里有泰安公司
  • 网站制作详细过程网站开发最强工具
  • 孟村县做网站长春城投建设投资有限公司网站
  • 国家重大建设项目库网站wordpress安装 var
  • 供求信息网站建设报价网站制作 苏州
  • 动漫建模代做网站百度一下wordpress nginx 固定链接
  • 广州网站开发网络公司网站建设的书
  • php手机网站开发教程家政网站怎么做
  • 视频网站的建设预算通信科技网站设计
  • 糖果网站建设策划书淘宝客网站开源
  • 建站公司还有前途吗cf网站编程