资源简介
基于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语言进行数字图像处理
- basler相机图像采集和显示
- 基于opencv漫水填充算法综合
- Visual+C++数字图像处理-谢凤英-源代码
- Bmp图像处理.zip
- VC++数字图像处理典型算法及实现
- VC6.0 完整的图像处理程序 运用了大量
- VC图像处理-用Canny算子提取边缘
- 数字图像处理扑克牌识别程序
- 数字图像处理与机器视觉——Visual
- 基于leapmotion的HMM手势识别
- C++ 图像处理283241
- C++图像伪彩色处理源代码
- 图像处理方面学习的好MFC显示直方图
- Visual C++.NET图像处理编程源代码 陆宗
- 直方图均衡化_c语言实现_源代码+实验
- (VC++ 数字图像处理典型算法及实现源
- 基于MFC的bmp图像处理268237
- c++指纹识别系统
- c语言实用数字图像处理
- 数字图像处理软件源代码三个资源集
- opencv图像处理MFC
- 数字图像处理实验源代码中值滤波,
- 圆检测和方形检测图像处理
- 数字图像处理的课程设计,图像处理
- 图像增强MSRCR算法
- 用MFC实现的图像处理源代码总集
- SeamCarving opencv c++
- 数字图像处理-基于内容的图像分类
- 数字图像处理 MFC bmp格式图片打开与保
评论
共有 条评论