简体   繁体   English

OpenCV 2.3 C ++基本图像处理

[英]OpenCV 2.3 C++ basic image processing

What is the best way to open an image, manually manipulate the pixels as floats, normalize the pixels back to 8bit int values (0-255) and save the new image. 打开图像的最佳方法是什么,将像素手动操作为浮点数,将像素标准化为8位int值(0-255)并保存新图像。

I found deferment codes use different variable types and commands, should i use Iplimage or mat, imread, and so on... 我发现延迟代码使用不同的变量类型和命令,我应该使用Iplimage或mat,imread等等...

i would really appreciate a code example 我真的很感激代码示例

Thanks! 谢谢!

You may want to look at the tutorial section provided in the OpenCV docs: OpenCV Tutorials . 您可能需要查看OpenCV文档中提供的教程部分: OpenCV教程 Especially "Introduction to OpenCV" and "core module. The Core Functionality" are the chapters you should be most interested in. 特别是“OpenCV简介”“核心模块。核心功能”是您最感兴趣的章节。

Refer here . 请参考这里 This gives the basic code sample. 这给出了基本代码示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM