资源简介
基于Seam Carving的图像处理C++源代码,多线程
代码片段和文件信息
//=========================================================================================================//
//CAIR - Content Aware Image Resizer
//Copyright (C) 2009 Joseph Auman (brain.recall@gmail.com)
//=========================================================================================================//
//This library is free software; you can redistribute it and/or
//modify it under the terms of the GNU Lesser General Public
//License as published by the Free Software Foundation; either
//version 2.1 of the License or (at your option) any later version.
//This library is distributed in the hope that it will be useful
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
//Lesser General Public License for more details.
//You should have received a copy of the GNU Lesser General Public
//License along with this library; if not write to the Free Software
//Foundation Inc. 51 Franklin Street Fifth Floor Boston MA 02110-1301 USA
//=========================================================================================================//
//This thing should hopefully perform the image resize method developed by Shai Avidan and Ariel Shamir.
//=========================================================================================================//
//TODO (maybe):
// - Try doing Poisson image reconstruction instead of the averaging technique in CAIR_HD() if I can figure it out (see the ReadMe).
// - Abstract out pthreads into macros allowing for multiple thread types to be used (ugh not for a while at least)
// - Maybe someday push CAIR into OO land and create a class out of it (pff OO is the devil!).
//=========================================================================================================//
//KNOWN BUGS:
// - The threading changes in v2.16 lost the reentrant capability of CAIR. (If this hits someone hard let me know.)
// - The percent of completion for the CAIR_callback in CAIR_HD and CAIR_Removal is often wrong.
//=========================================================================================================//
//CHANGELOG:
//CAIR v2.19 Changelog:
// - Single-threaded Energy_Map() which surprisingly gave a 35% speed boost. My attempts at multithreading this function became a bottleneck.
// If anyone has any idea on how to successfully multithread this algorithm please let me know.
//CAIR v2.18 Changelog:
// - Overhauled my internal matrix handling for a 30% speed boost.
// - Complete overhaul of seam enlarging. CAIR now enlarges by the method intended in the paper. (Removed seams determine the added seams. See CAIR_Add())
// Because of this the add_weight parameter is no longer needed.
// - Found and fixed a few boundary issues with the edge updates.
// - Fixed the non-standard void pointer usage with the thread IDs. (Special thanks to Peter Berrington)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
.CA.... 69498 2009-06-02 21:41 cair_sorcecode\CAIR.cpp
.CA.... 179712 2009-06-02 21:53 cair_sorcecode\CAIR.exe
.CA.... 9421 2009-05-20 22:49 cair_sorcecode\CAIR.h
.CA.... 9283 2009-06-02 21:53 cair_sorcecode\CAIR_CML.h
.CA.... 1489 2005-11-01 10:12 cair_sorcecode\EasyBMP\BSD_(revised)_license.txt
.CA.... 48149 2006-12-01 01:22 cair_sorcecode\EasyBMP\EasyBMP.cpp
.CA.... 2418 2006-12-01 01:05 cair_sorcecode\EasyBMP\EasyBMP.h
.CA.... 2815 2006-12-01 01:20 cair_sorcecode\EasyBMP\EasyBMP_BMP.h
.CA.... 2708 2006-12-01 01:02 cair_sorcecode\EasyBMP\EasyBMP_DataStructures.h
.CA.... 1975 2006-12-01 01:02 cair_sorcecode\EasyBMP\EasyBMP_VariousBMPutilities.h
.CA.... 25651 2008-10-15 20:55 cair_sorcecode\GPL.txt
.CA.... 11434 2009-06-02 21:53 cair_sorcecode\main.cpp
.CA.... 154 2008-10-15 20:57 cair_sorcecode\Makefile
.CA.... 5939 2006-12-21 02:55 cair_sorcecode\pthreads\COPYING
.CA.... 43162 2007-09-27 19:53 cair_sorcecode\pthreads\pthread.h
.CA.... 86071 2006-12-22 13:14 cair_sorcecode\pthreads\pthreadVSE2.dll
.CA.... 29400 2006-12-22 13:14 cair_sorcecode\pthreads\pthreadVSE2.lib
.CA.... 4844 2006-12-21 02:55 cair_sorcecode\pthreads\sched.h
.CA.... 4429 2006-12-21 02:55 cair_sorcecode\pthreads\semaphore.h
.CA.... 86071 2006-12-22 13:14 cair_sorcecode\pthreadVSE2.dll
.CA.... 13901 2009-05-20 23:16 cair_sorcecode\ReadMe.txt
.C.D... 0 2010-04-14 12:01 cair_sorcecode\EasyBMP
.C.D... 0 2010-04-14 12:01 cair_sorcecode\pthreads
.C.D... 0 2010-04-14 12:01 cair_sorcecode
----------- --------- ---------- ----- ----
638524 24
- 上一篇:KMP,键树 英语文章单词统计
- 下一篇:最大相关最小冗余的C语言源码
相关资源
- 图像处理 逆滤波处理 C/C++语言实现
- 数字图像处理原理与实践 基于Visua
- 数字图像处理 邻域平均法 C语言
- C语言写的简单均值滤波算法
- VC图像处理系列之一——图像读写篇
- 边界跟踪算法的实现,图像处理 c++
- 功能非常全的数字图像处理程序含源
- emgucv&opencv图像处理函数说明
- OpenCV+C++图像处理项目14个
- 计算图像的平均灰度值
- Visual C++数字图像处理技术详解 pdf+源
- dsp图像处理二维傅里叶变换代码实现
- 图像处理 验证码识别C++
- 11个常用OpenCV+C++图像处理
- 图像处理 FFT快速傅里叶变换 C代码
- 基于linux下的图像缩小 c语言
- C++ 数字图像处理源代码
- c++builder做图像处理项目的核心代码
- 亚像素模板匹配—计算图像之间的亚
- 数字图像处理 印前输出 rip 数字加
- 图像处理算法源代码,用C语言完成
- MFC图像处理 反色和红色
- 图像处理软件系统visual c++
- C/C++语言图像处理:各种滤波
- 基于MFC的图像处理
- c++视频教程opencv视频图像处理机器视
- MFC数字图像处理BMP格式读取 保存 DF
- 图像处理 图像旋转 C/C++语言实现
- 基于c语言的图形图像处理源代码完整
- 数字图像处理图像锐化C++实现
评论
共有 条评论