資源簡介
基于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
評論
共有 條評論