锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久亚洲国产中v天仙www,好属妞这里只有精品久久,久久久精品人妻一区二区三区四http://www.shnenglu.com/polly-yang/zh-cnWed, 07 May 2025 18:14:29 GMTWed, 07 May 2025 18:14:29 GMT60DSP鍖呭惈鐨勫浘鍍忕畻娉曞簱http://www.shnenglu.com/polly-yang/archive/2012/09/18/191141.htmlpollypollyTue, 18 Sep 2012 11:19:00 GMThttp://www.shnenglu.com/polly-yang/archive/2012/09/18/191141.htmlhttp://www.shnenglu.com/polly-yang/comments/191141.htmlhttp://www.shnenglu.com/polly-yang/archive/2012/09/18/191141.html#Feedback0http://www.shnenglu.com/polly-yang/comments/commentRss/191141.htmlhttp://www.shnenglu.com/polly-yang/services/trackbacks/191141.html闃呰鍏ㄦ枃

polly 2012-09-18 19:19 鍙戣〃璇勮
]]>
銆愯漿杞姐戝湪Ubuntu涓嬪畨瑁匬ython縐戝璁$畻鐜http://www.shnenglu.com/polly-yang/archive/2012/09/18/191093.htmlpollypollyTue, 18 Sep 2012 05:02:00 GMThttp://www.shnenglu.com/polly-yang/archive/2012/09/18/191093.htmlhttp://www.shnenglu.com/polly-yang/comments/191093.htmlhttp://www.shnenglu.com/polly-yang/archive/2012/09/18/191093.html#Feedback0http://www.shnenglu.com/polly-yang/comments/commentRss/191093.htmlhttp://www.shnenglu.com/polly-yang/services/trackbacks/191093.html鍘熸枃鍦板潃錛?a target="_blank">鍦║buntu涓畨瑁匬ython縐戝璁$畻鐜 浣滆?/strong>錛?a target="_blank">HyryStudio


鍦║buntu涓嬪畨瑁匬ython妯″潡閫氬父鍙互浣跨敤apt-get鍜宲ip鍛戒護(hù)銆俛pt-get鍛戒護(hù)鏄疷buntu鑷甫鐨勫寘綆$悊鍛戒護(hù)錛岃宲ip鍒欐槸Python瀹夎鎵╁睍妯″潡鐨勫伐鍏鳳紝閫氬父pip浼?xì)涓嬭浇鎵╁睍妯″潡鐨勬簮浠g爜迤埦~栬瘧瀹夎銆?/p>

Ubuntu 12.04涓己鐪佸畨瑁呬簡Python2.7.3錛岄鍏堥氳繃涓嬮潰鐨勫懡浠ゅ畨瑁卲ip錛宲ip鏄疨ython鐨勪竴涓畨瑁呭拰綆$悊鎵╁睍搴撶殑宸ュ叿銆?/p>

sudo apt-get install python-pip

瀹夎Python寮鍙戠幆澧冿紝鏂逛究浠婂悗緙栬瘧鍏朵粬鎵╁睍搴擄紝鍗犵敤絀洪棿92.8M錛?/p>

sudo apt-get install python-dev

IPython

涓轟簡瀹夎鏈鏂扮増鐨処Python 0.13beta錛岄渶瑕佷笅杞絀Python婧愪唬鐮侊紝騫舵墽琛屽畨瑁呭懡浠ゃ傚湪IPython 0.13beta涓彁渚涗簡鏀硅繘鐗堟湰鐨処Python notebook銆備笅闈㈢殑鍛戒護(hù)棣栧厛瀹夎鐗堟湰綆$悊杞歡git錛岀劧鍚庨氳繃git鍛戒護(hù)浠嶪Python鐨勫紑鍙戜唬鐮佸簱涓笅杞芥渶鏂扮増鏈殑IPython婧愪唬鐮侊紝騫舵墽琛屽畨瑁呭懡浠わ細(xì)

cd
sudo apt-get install git
git clone https://github.com/ipython/ipython.git
cd ipython
sudo python setup.py install

濡傛灉瀹夎鐩墠鐨勬渶鏂扮ǔ瀹氱増鏈紝鍙互杈撳叆:

sudo apt-get install ipython

瀹夎瀹屾瘯涔嬪悗錛岃杈撳叆ipython鍛戒護(hù)嫻嬭瘯鏄惁鑳芥甯稿惎鍔ㄣ?/p>

涓轟簡璁㊣Python notebook宸ヤ綔錛岃繕榪橀渶瑕佸畨瑁卼ornado鍜宲yzmq錛?/p>

sudo pip install tornado
sudo apt-get install libzmq-dev
sudo pip install pyzmq
sudo pip install pygments

涓嬮潰嫻嬭瘯IPython錛?/p>

cd
mkdir notebook
cd notebook
ipython notebook

涓轟簡鍦↖Python涓綰夸嬌鐢↙aTeX鏁板鍏紡錛岄渶瑕佸畨瑁卪athjax錛岄鍏堣緭鍏ヤ笅闈㈢殑鍛戒護(hù)鍚姩ipython notebook錛?/p>

sudo ipython notebook

鍦↖Python notebook鐣岄潰涓緭鍏ワ細(xì)

from IPython.external.mathjax import install_mathjax
install_mathjax()

NumPy錛孲ciPy鍜宮atplotlib

閫氳繃apt-get鍛戒護(hù)鍙互蹇熷畨瑁呰繖涓変釜搴擄細(xì)

sudo apt-get install python-numpy
sudo apt-get install python-scipy
sudo apt-get install python-matplotlib

濡傛灉闇瑕侀氳繃pip緙栬瘧瀹夎錛屽彲浠ュ厛鐢╝pt-get鍛戒護(hù)瀹夎鎵鏈夌紪璇戞墍闇鐨勫簱錛?/p>

sudo apt-get build-dep python-numpy
sudo apt-get build-dep python-scipy

鐒跺悗閫氳繃pip鍛戒護(hù)瀹夎錛?/p>

sudo pip install numpy
sudo pip install scipy
閫氳繃build-dep浼?xì)瀹夎寰堝搴撳Q屽寘鎷琍ython 3.2銆?/div>

PyQt4鍜孲pyder

涓嬮潰鐨勫懡浠ゅ畨瑁匬yQt4錛孮t鐣岄潰璁捐鍣紝PyQt4鐨勫紑鍙戝伐鍏蜂互鍙?qiáng)鏂囨。锛?xì)

sudo apt-get install python-qt4
sudo apt-get install qt4-designer
sudo apt-get install pyqt4-dev-tools
sudo apt-get install python-qt4-doc

瀹夎瀹屾瘯涔嬪悗錛屾枃妗d綅浜庯細(xì)

/usr/share/doc/python-qt4-doc

瀹夎濂絇yQt4涔嬪悗閫氳繃涓嬮潰鐨勫懡浠ゅ畨瑁匰pyder錛?/p>

sudo apt-get install spyder

鐢變簬Spyder緇忓父鏇存柊錛岄氳繃涓嬮潰鐨勫懡浠ゅ彲浠ュ畨瑁呮渶鏂扮増錛?/p>

sudo pip install spyder --upgrade

cython鍜孲WIG

Cython鍜孲WIG鏄紪鍐橮ython鎵╁睍妯″潡鐨勫伐鍏鳳細(xì)

sudo pip install cython
sudo apt-get install swig

杈撳叆 cython --version 鍜?swig -version 鏌ョ湅鐗堟湰銆?/p>

ETS

ETS鏄痚nthought鍏徃寮鍙戠殑涓濂楃瀛﹁綆楄蔣浠跺寘錛屽叾涓殑Mayavi閫氳繃VTK瀹炵幇鏁版嵁鐨勪笁緇村彲瑙嗗寲銆?/p>

棣栧厛閫氳繃涓嬮潰鐨勫懡浠ゅ畨瑁呯紪璇慐TS鎵闇鐨勫簱錛?/p>

sudo apt-get install python-dev libxtst-dev scons python-vtk  pyqt4-dev-tools python2.7-wxgtk2.8 python-configobj
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev

鍒涘緩ets鐩綍錛屽茍鍦ㄦ鐩綍涓嬩笅杞絜ts.py錛岃繍琛宔ts.py鍙互澶嶅埗鏈鏂扮増鐨凟TS婧愮▼搴忥紝騫跺畨瑁咃細(xì)

mkdir ets
cd ets
wget https://github.com/enthought/ets/raw/master/ets.py
python ets.py clone
sudo python ets.py develop
#sudo python ets.py install 鎴栬呰繍琛宨nstall瀹夎

濡傛灉涓鍒囨甯革紝閭d箞杈撳叆 mayavi2 鍛戒護(hù)鍒欎細(xì)鍚姩mayavi銆?/p>

OpenCV

涓轟簡緙栬瘧OpenCV闇瑕佷笅杞絚make緙栬瘧宸ュ叿錛屽拰涓浜涗緷璧栧簱錛?/p>

sudo apt-get install build-essential
sudo apt-get install cmake
sudo apt-get install cmake-gui
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install libjpeg-dev libpng-dev libtiff-dev libjasper-dev

鐒跺悗浠?http://sourceforge.net/projects/opencvlibrary/ 涓嬭澆鏈鏂扮増鐨凮penCV婧愪唬鐮侊紝騫惰В鍘嬨傜劧鍚庡垱寤虹紪璇戠敤鐨勭洰褰時elease錛屽茍鍚姩cmake-gui:

mkdir release
cmake-gui

鍦ㄧ晫闈腑閫夋嫨OpenCV婧愪唬鐮佺殑鐩綍錛屽拰緙栬瘧杈撳嚭鐩綍release錛岀劧鍚庢寜Configure鎸夐挳錛屽茍鏍規(guī)嵁闇瑕佽緗悇涓紪璇戦夐」錛屾渶鍚庣偣Generate鎸夐挳錛岄鍑篶make-gui鐣岄潰銆傝繘鍏ョ紪璇戣礬寰勶紝鎵ц涓嬮潰鐨勫懡浠わ細(xì)

cd release
make
sudo make install

瀹夎瀹屾瘯涔嬪悗錛屽惎鍔↖Python錛屽茍杈撳叆 import cv2 嫻嬭瘯OpenCV鏄惁鑳芥甯歌澆鍏ャ?/p>

 



polly 2012-09-18 13:02 鍙戣〃璇勮
]]>Python鐧婚檰浜轟漢緗戝茍鎶撳彇鏂伴矞浜?/title><link>http://www.shnenglu.com/polly-yang/archive/2012/09/17/190975.html</link><dc:creator>polly</dc:creator><author>polly</author><pubDate>Mon, 17 Sep 2012 06:20:00 GMT</pubDate><guid>http://www.shnenglu.com/polly-yang/archive/2012/09/17/190975.html</guid><wfw:comment>http://www.shnenglu.com/polly-yang/comments/190975.html</wfw:comment><comments>http://www.shnenglu.com/polly-yang/archive/2012/09/17/190975.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/polly-yang/comments/commentRss/190975.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/polly-yang/services/trackbacks/190975.html</trackback:ping><description><![CDATA[<p> </p> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><img id="Code_Closed_Image_141844" onclick="this.style.display='none'; Code_Closed_Text_141844.style.display='none'; Code_Open_Image_141844.style.display='inline'; Code_Open_Text_141844.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ContractedBlock.gif" width="11" height="16"><img style="display: none" id="Code_Open_Image_141844" onclick="this.style.display='none'; Code_Open_Text_141844.style.display='none'; Code_Closed_Image_141844.style.display='inline'; Code_Closed_Text_141844.style.display='inline';" align="top" src="http://www.shnenglu.com/images/OutliningIndicators/ExpandedBlockStart.gif" width="11" height="16"><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Code_Closed_Text_141844"></span><span style="display: none" id="Code_Open_Text_141844"><br /><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080"> 1</span><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #0000ff">from</span><span style="color: #000000"> sgmllib </span><span style="color: #0000ff">import</span><span style="color: #000000"> SGMLParser<br /></span><span style="color: #008080"> 2</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> sys,urllib2,urllib,cookielib<br /></span><span style="color: #008080"> 3</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">class</span><span style="color: #000000"> spider(SGMLParser):<br /></span><span style="color: #008080"> 4</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff">def</span><span style="color: #000000"> </span><span style="color: #800080">__init__</span><span style="color: #000000">(self,email,password):<br /></span><span style="color: #008080"> 5</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        SGMLParser.</span><span style="color: #800080">__init__</span><span style="color: #000000">(self)<br /></span><span style="color: #008080"> 6</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.h3</span><span style="color: #000000">=</span><span style="color: #000000">False<br /></span><span style="color: #008080"> 7</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.h3_is_ready</span><span style="color: #000000">=</span><span style="color: #000000">False<br /></span><span style="color: #008080"> 8</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.div</span><span style="color: #000000">=</span><span style="color: #000000">False<br /></span><span style="color: #008080"> 9</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.h3_and_div</span><span style="color: #000000">=</span><span style="color: #000000">False<br /></span><span style="color: #008080">10</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.a</span><span style="color: #000000">=</span><span style="color: #000000">False<br /></span><span style="color: #008080">11</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.depth</span><span style="color: #000000">=</span><span style="color: #000000">0<br /></span><span style="color: #008080">12</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.names</span><span style="color: #000000">=</span><span style="color: #800000">""</span><span style="color: #000000"><br /></span><span style="color: #008080">13</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.dic</span><span style="color: #000000">=</span><span style="color: #000000">{}   <br /></span><span style="color: #008080">14</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />         <br /></span><span style="color: #008080">15</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.email</span><span style="color: #000000">=</span><span style="color: #000000">email<br /></span><span style="color: #008080">16</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.password</span><span style="color: #000000">=</span><span style="color: #000000">password<br /></span><span style="color: #008080">17</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.domain</span><span style="color: #000000">=</span><span style="color: #800000">'</span><span style="color: #800000">renren.com</span><span style="color: #800000">'</span><span style="color: #000000"><br /></span><span style="color: #008080">18</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">try</span><span style="color: #000000">:<br /></span><span style="color: #008080">19</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            cookie</span><span style="color: #000000">=</span><span style="color: #000000">cookielib.CookieJar()<br /></span><span style="color: #008080">20</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            cookieProc</span><span style="color: #000000">=</span><span style="color: #000000">urllib2.HTTPCookieProcessor(cookie)<br /></span><span style="color: #008080">21</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">except</span><span style="color: #000000">:<br /></span><span style="color: #008080">22</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff">raise</span><span style="color: #000000"><br /></span><span style="color: #008080">23</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">else</span><span style="color: #000000">:<br /></span><span style="color: #008080">24</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            opener</span><span style="color: #000000">=</span><span style="color: #000000">urllib2.build_opener(cookieProc)<br /></span><span style="color: #008080">25</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            urllib2.install_opener(opener)       <br /></span><span style="color: #008080">26</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">27</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff">def</span><span style="color: #000000"> login(self):<br /></span><span style="color: #008080">28</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        url</span><span style="color: #000000">=</span><span style="color: #800000">'</span><span style="color: #800000">http://www.renren.com/PLogin.do</span><span style="color: #800000">'</span><span style="color: #000000"><br /></span><span style="color: #008080">29</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        postdata</span><span style="color: #000000">=</span><span style="color: #000000">{<br /></span><span style="color: #008080">30</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />                  </span><span style="color: #800000">'</span><span style="color: #800000">email</span><span style="color: #800000">'</span><span style="color: #000000">:self.email,<br /></span><span style="color: #008080">31</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />                  </span><span style="color: #800000">'</span><span style="color: #800000">password</span><span style="color: #800000">'</span><span style="color: #000000">:self.password,<br /></span><span style="color: #008080">32</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />                  </span><span style="color: #800000">'</span><span style="color: #800000">domain</span><span style="color: #800000">'</span><span style="color: #000000">:self.domain  <br /></span><span style="color: #008080">33</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />                  }<br /></span><span style="color: #008080">34</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        req</span><span style="color: #000000">=</span><span style="color: #000000">urllib2.Request(<br /></span><span style="color: #008080">35</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />                            url,<br /></span><span style="color: #008080">36</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />                            urllib.urlencode(postdata)            <br /></span><span style="color: #008080">37</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />                            )<br /></span><span style="color: #008080">38</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        <br /></span><span style="color: #008080">39</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.file</span><span style="color: #000000">=</span><span style="color: #000000">urllib2.urlopen(req).read()<br /></span><span style="color: #008080">40</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #008000">#</span><span style="color: #008000">print self.file</span><span style="color: #008000"><br /></span><span style="color: #008080">41</span><span style="color: #008000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">    </span><span style="color: #0000ff">def</span><span style="color: #000000"> start_h3(self,attrs):<br /></span><span style="color: #008080">42</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.h3 </span><span style="color: #000000">=</span><span style="color: #000000"> True<br /></span><span style="color: #008080">43</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff">def</span><span style="color: #000000"> end_h3(self):<br /></span><span style="color: #008080">44</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.h3</span><span style="color: #000000">=</span><span style="color: #000000">False<br /></span><span style="color: #008080">45</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.h3_is_ready</span><span style="color: #000000">=</span><span style="color: #000000">True<br /></span><span style="color: #008080">46</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        <br /></span><span style="color: #008080">47</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff">def</span><span style="color: #000000"> start_a(self,attrs):<br /></span><span style="color: #008080">48</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000"> self.h3 </span><span style="color: #0000ff">or</span><span style="color: #000000"> self.div:<br /></span><span style="color: #008080">49</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            self.a</span><span style="color: #000000">=</span><span style="color: #000000">True<br /></span><span style="color: #008080">50</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff">def</span><span style="color: #000000"> end_a(self):<br /></span><span style="color: #008080">51</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        self.a</span><span style="color: #000000">=</span><span style="color: #000000">False<br /></span><span style="color: #008080">52</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        <br /></span><span style="color: #008080">53</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff">def</span><span style="color: #000000"> start_div(self,attrs):<br /></span><span style="color: #008080">54</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000"> self.h3_is_ready </span><span style="color: #000000">==</span><span style="color: #000000"> False:<br /></span><span style="color: #008080">55</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff">return</span><span style="color: #000000"><br /></span><span style="color: #008080">56</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000"> self.div</span><span style="color: #000000">==</span><span style="color: #000000">True:<br /></span><span style="color: #008080">57</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            self.depth </span><span style="color: #000000">+=</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000"><br /></span><span style="color: #008080">58</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            <br /></span><span style="color: #008080">59</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">for</span><span style="color: #000000"> k,v </span><span style="color: #0000ff">in</span><span style="color: #000000"> attrs:<br /></span><span style="color: #008080">60</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff">if</span><span style="color: #000000"> k </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #800000">'</span><span style="color: #800000">class</span><span style="color: #800000">'</span><span style="color: #000000"> </span><span style="color: #0000ff">and</span><span style="color: #000000"> v </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #800000">'</span><span style="color: #800000">content</span><span style="color: #800000">'</span><span style="color: #000000">:<br /></span><span style="color: #008080">61</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />                self.div</span><span style="color: #000000">=</span><span style="color: #000000">True;<br /></span><span style="color: #008080">62</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />                self.h3_and_div</span><span style="color: #000000">=</span><span style="color: #000000">True   </span><span style="color: #008000">#</span><span style="color: #008000">h3 and div is connected</span><span style="color: #008000"><br /></span><span style="color: #008080">63</span><span style="color: #008000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">    </span><span style="color: #0000ff">def</span><span style="color: #000000"> end_div(self):<br /></span><span style="color: #008080">64</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000"> self.depth </span><span style="color: #000000">==</span><span style="color: #000000"> 0:<br /></span><span style="color: #008080">65</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            self.div</span><span style="color: #000000">=</span><span style="color: #000000">False<br /></span><span style="color: #008080">66</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            self.h3_and_div</span><span style="color: #000000">=</span><span style="color: #000000">False<br /></span><span style="color: #008080">67</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            self.h3_is_ready</span><span style="color: #000000">=</span><span style="color: #000000">False<br /></span><span style="color: #008080">68</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            self.names</span><span style="color: #000000">=</span><span style="color: #800000">""</span><span style="color: #000000"><br /></span><span style="color: #008080">69</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000"> self.div </span><span style="color: #000000">==</span><span style="color: #000000"> True:<br /></span><span style="color: #008080">70</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            self.depth</span><span style="color: #000000">-=</span><span style="color: #000000">1</span><span style="color: #000000"><br /></span><span style="color: #008080">71</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff">def</span><span style="color: #000000"> handle_data(self,text):<br /></span><span style="color: #008080">72</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #008000">#</span><span style="color: #008000">record the name</span><span style="color: #008000"><br /></span><span style="color: #008080">73</span><span style="color: #008000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">        </span><span style="color: #0000ff">if</span><span style="color: #000000"> self.h3 </span><span style="color: #0000ff">and</span><span style="color: #000000"> self.a:<br /></span><span style="color: #008080">74</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            self.names</span><span style="color: #000000">+=</span><span style="color: #000000">text<br /></span><span style="color: #008080">75</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #008000">#</span><span style="color: #008000">record says</span><span style="color: #008000"><br /></span><span style="color: #008080">76</span><span style="color: #008000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">        </span><span style="color: #0000ff">if</span><span style="color: #000000"> self.h3 </span><span style="color: #0000ff">and</span><span style="color: #000000"> (self.a</span><span style="color: #000000">==</span><span style="color: #000000">False):<br /></span><span style="color: #008080">77</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff">if</span><span style="color: #000000"> </span><span style="color: #0000ff">not</span><span style="color: #000000"> text:</span><span style="color: #0000ff">pass</span><span style="color: #000000"><br /></span><span style="color: #008080">78</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff">else</span><span style="color: #000000">: self.dic.setdefault(self.names,[]).append(text)<br /></span><span style="color: #008080">79</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff">return</span><span style="color: #000000"> <br /></span><span style="color: #008080">80</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000"> self.h3_and_div:<br /></span><span style="color: #008080">81</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            self.dic.setdefault(self.names,[]).append(text)<br /></span><span style="color: #008080">82</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            <br /></span><span style="color: #008080">83</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff">def</span><span style="color: #000000"> show(self):<br /></span><span style="color: #008080">84</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        type </span><span style="color: #000000">=</span><span style="color: #000000"> sys.getfilesystemencoding()<br /></span><span style="color: #008080">85</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">for</span><span style="color: #000000"> key </span><span style="color: #0000ff">in</span><span style="color: #000000"> self.dic:<br /></span><span style="color: #008080">86</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff">print</span><span style="color: #000000"> ( (</span><span style="color: #800000">''</span><span style="color: #000000">.join(key)).replace(</span><span style="color: #800000">'</span><span style="color: #800000"> </span><span style="color: #800000">'</span><span style="color: #000000">,</span><span style="color: #800000">''</span><span style="color: #000000">)).decode(</span><span style="color: #800000">'</span><span style="color: #800000">utf-8</span><span style="color: #800000">'</span><span style="color: #000000">).encode(type), \<br /></span><span style="color: #008080">87</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />                  ( (</span><span style="color: #800000">''</span><span style="color: #000000">.join(self.dic[key])).replace(</span><span style="color: #800000">'</span><span style="color: #800000"> </span><span style="color: #800000">'</span><span style="color: #000000">,</span><span style="color: #800000">''</span><span style="color: #000000">)).decode(</span><span style="color: #800000">'</span><span style="color: #800000">utf-8</span><span style="color: #800000">'</span><span style="color: #000000">).encode(type)<br /></span><span style="color: #008080">88</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">89</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /> <br /></span><span style="color: #008080">90</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">91</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">92</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />renrenspider</span><span style="color: #000000">=</span><span style="color: #000000">spider(</span><span style="color: #800000">'</span><span style="color: #800000">your email</span><span style="color: #800000">'</span><span style="color: #000000">,</span><span style="color: #800000">'</span><span style="color: #800000">your password</span><span style="color: #800000">'</span><span style="color: #000000">)<br /></span><span style="color: #008080">93</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />renrenspider.login()<br /></span><span style="color: #008080">94</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />renrenspider.feed(renrenspider.file)<br /></span><span style="color: #008080">95</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" />renrenspider.show()<br /></span><span style="color: #008080">96</span><span style="color: #000000"><img align="top" src="http://www.shnenglu.com/images/OutliningIndicators/None.gif" alt="" /></span></span></div> <p> </p> <img src ="http://www.shnenglu.com/polly-yang/aggbug/190975.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/polly-yang/" target="_blank">polly</a> 2012-09-17 14:20 <a href="http://www.shnenglu.com/polly-yang/archive/2012/09/17/190975.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>緹庡浗鑸┖姣嶈埌鍦?Google Earth涓婄殑鍧愭爣http://www.shnenglu.com/polly-yang/archive/2012/08/19/187652.htmlpollypollySun, 19 Aug 2012 02:34:00 GMThttp://www.shnenglu.com/polly-yang/archive/2012/08/19/187652.htmlhttp://www.shnenglu.com/polly-yang/comments/187652.htmlhttp://www.shnenglu.com/polly-yang/archive/2012/08/19/187652.html#Feedback0http://www.shnenglu.com/polly-yang/comments/commentRss/187652.htmlhttp://www.shnenglu.com/polly-yang/services/trackbacks/187652.htmlGoogle Earth鍧愭爣錛嶇編鍥借埅絀烘瘝鑸板潗鏍?/h2>

銆銆榪欓噷緗楀垪浜嗗凡緇忓彂鐜扮殑鎵鏈夌編鍥界幇褰瑰拰閫褰圭殑鑸┖姣嶈埌銆傚叾涓寘鎷細(xì)

銆銆“灝忛拱”鍙?CV63銆 35°17'29.66"N,139°39'43.67"E

銆銆“鑲凹榪?#8221;鍙?CVN67銆 30°23'50.91"N, 81°24'14.86"W

銆銆“灝肩背鍏?#8221;鍙?CVN68銆 32°42'47.88"N,117°11'22.49"W

銆銆“鑹炬.璞▉灝?#8221;鍙?CVN69銆 36°57'27.13"N, 76°19'46.35"W

銆銆“鏋楄偗” 鍙?CVN72 銆 47°58'53.54"N,122°13'42.94"W

銆銆“鍗庣洓欏?#8221;鍙?CVN73銆 36°57'32.90"N, 76°19'45.10"W

銆銆“鏉滈瞾闂?#8221;鍙?CVN75銆銆36°48'53.25"N,76°17'49.29"W

銆銆“鏃犵晱”鍙?CV-11銆銆 40°45'53.88"N,74° 0'4.22"W

銆銆“鑾卞厠鏄熼】”鍙?CV-2銆銆27°48'54.13"N,97°23'19.65"W

銆銆“鏄熷駭”鍙?47°33'11.30"N,122°39'17.24"W

銆銆“鐙珛”鍙?47°33'7.53"N,122°39'30.13"W

銆銆“娓擱獞鍏?#8221;鍙?47°33'10.63"N,122°39'9.53"W

銆銆“浣?jīng)鐟炴柉鐗?#8221;鍙峰拰“钀ㄦ媺鎵樺姞”鍙楓41°31'39.59"N,71°18'58.70"W

銆銆“緹庡埄鍧?#8221;鍙楓39°53'6.36"N,75°10'45.55"W



polly 2012-08-19 10:34 鍙戣〃璇勮
]]>
緹庡浗嫻峰啗鑸┖姣嶈埌鍒楄〃http://www.shnenglu.com/polly-yang/archive/2012/08/19/187651.htmlpollypollySun, 19 Aug 2012 02:33:00 GMThttp://www.shnenglu.com/polly-yang/archive/2012/08/19/187651.htmlhttp://www.shnenglu.com/polly-yang/comments/187651.htmlhttp://www.shnenglu.com/polly-yang/archive/2012/08/19/187651.html#Feedback0http://www.shnenglu.com/polly-yang/comments/commentRss/187651.htmlhttp://www.shnenglu.com/polly-yang/services/trackbacks/187651.html鏈垪琛ㄦ敹褰曚簡緹庡浗嫻峰啗宸遍褰規(guī)垨鐜板焦涓殑鑸┖姣嶈埌錛屽寘鎷?a class="mw-redirect" title="緹庡浗嫻峰啗鑸頒綋緙栧彿" >鑸圭駭灞炰簬CV銆丆VA銆丆VB銆丆VL鎴朇VN鐨勫叏閮ㄨ埌鍙傜紪鍙峰湪CVA-58涔嬪悗鐨勯兘灞炰簬瓚呯駭鑸┖姣嶈埌錛?a title="鎺掓按閲? >鎺掓按閲?/a>瓚呰繃75,000鍚級錛孋VN-65鍜孋VN-68浠ュ悗鐨勯兘灞炰簬鏍稿姩鍔涜埅絀烘瘝鑸?/a>銆?/p>

鎺掓按閲忚緝?yōu)畯鐨?a class="mw-redirect" title="鎶ゅ崼鑸┖姣嶈埌" >鎶よ埅鑸┖姣嶈埌錛圗scort Aircraft Carriers錛孋VE錛夛紝鍒欏彟琛屾敹褰曚簬緹庡浗嫻峰啗鎶よ埅鑸┖姣嶈埌鍒楄〃涓?/p>
鑸硅埌緙栧彿 鑸板悕 綰у埆 闄勬敞
CV-1 Langley 鍏板埄鍙?/a> 浠ヨ繍鐓よ埌鏈辨瘮鐗瑰彿錛圲SS Jupiter錛夋敼閫犺屾垚
CV-2 Lexington 鍒楀厠鏄熸暒鍙?/a> 5鏈?鏃?/a>CV-3 Saratoga 钀ㄦ媺鎵樺姞鍙?/a> 鍒楀厠鏄熸暒綰?/td> 7鏈?5鏃?/a>鍦?a title="姣斿熀灝肩幆紺? >姣斿熀灝肩幆紺?/a>鐨勬牳瀛愭鍣ㄨ瘯楠屼腑娌夋病
CV-4 Ranger 紿佸嚮鑰呭彿 紿佸嚮鑰呯駭 10鏈?8鏃?/a>閫褰?/td>
CV-5 Yorktown 綰﹀厠鍩庡彿 綰﹀厠鍩庣駭 6鏈?鏃?/a>鍦?a title="涓斿矝嫻鋒垬" >涓斿矝嫻鋒垬涓矇娌?/td>
CV-6 Enterprise 浼佷笟鍙?/a> 綰﹀厠鍩庣駭 2鏈?7鏃?/a>閫褰?/td>
CV-7 Wasp 鑳¤渹鍙?/a> 9鏈?5鏃?/a>琚?a class="mw-redirect" title="鏃ュ啗" >鏃ュ啗娼滆墖鍑?yán)L矇
CV-8 Hornet 澶ч粍铚傚彿 綰﹀厠鍩庣駭 10鏈?7鏃?/a>鍦?a title="鍦e厠椴佹柉緹ゅ矝鎴樺焦" >鍦e厠椴佹柉緹ゅ矝鎴樺焦涓彈閲嶅垱娌夋病
CV-9 Essex 6鏈?0鏃?/a>閫褰?/td>
CV-10 Yorktown 綰﹀厠鍩庡彿 鍩冨鍏嬫柉綰?/td> 6鏈?7鏃?/a>閫褰?/td>
CV-11 Intrepid 鍩冨鍏嬫柉綰?/td> 3鏈?5鏃?/a>閫褰?/td>
CV-12 Hornet 澶ч粍铚傚彿 鍩冨鍏嬫柉綰?/td> 6鏈?4鏃?/a>閫褰?/td>
CV-13 Franklin 鍩冨鍏嬫柉綰?/td> 2鏈?7鏃?/a>閫褰?/td>
CV-14 Ticonderoga 鎻愬悍寰風(fēng)綏鍔犲彿 鍩冨鍏嬫柉綰?/td> 闀胯埌浣撳焹濉炲厠鏂駭錛圠ong-hull Essex錛?/td>
CV-15 Randolph 浼﹂亾澶彿 鍩冨鍏嬫柉綰?/td> 闀胯埌浣撳焹濉炲厠鏂駭錛圠ong-hull Essex錛?/td>
CV-16 Lexington 鍒楀厠鏄熸暒鍙?/a> 鍩冨鍏嬫柉綰?/td> 11鏈?鏃?/a>閫褰?/td>
CV-17 Bunker Hill 閭﹀厠灞卞彿 鍩冨鍏嬫柉綰?/td> 1鏈?鏃?/a>閫褰?/td>
CV-18 Wasp 鑳¤渹鍙?/a> 鍩冨鍏嬫柉綰?/td> 7鏈?鏃?/a>閫褰?/td>
CV-19 Hancock 鍩冨鍏嬫柉綰?/td> 闀胯埌浣撳焹濉炲厠鏂駭錛圠ong-hull Essex錛?/td>
CV-20 Bennington 鏈畞欏垮彿 鍩冨鍏嬫柉綰?/td> 1鏈?5鏃?/a>閫褰?/td>
CV-21 Boxer 鍩冨鍏嬫柉綰?/td> 闀胯埌浣撳焹濉炲厠鏂駭錛圠ong-hull Essex錛?/td>
CVL-22 Independence 鐙珛鍙?/a> 鑷?#8220;鍏嬮噷澶叞綰ц交宸℃磱鑸?#8221;鏀硅鑰屾垚
CVL-23 Princeton 鏅灄鏂】鍙?/a> 鐙珛綰?/td> 鑷?#8220;鍏嬮噷澶叞綰ц交宸℃磱鑸?#8221;鏀硅鑰屾垚
CVL-24 Belleau Wood 鐙珛綰?/td> 鑷?#8220;鍏嬮噷澶叞綰ц交宸℃磱鑸?#8221;鏀硅鑰屾垚
CVL-25 Cowpens 縐戞湰鏂彿 鐙珛綰?/td> 鑷?#8220;鍏嬮噷澶叞綰ц交宸℃磱鑸?#8221;鏀硅鑰屾垚
CVL-26 Monterey 钂欑壒鍒╁彿 鐙珛綰?/td> 鑷?#8220;鍏嬮噷澶叞綰ц交宸℃磱鑸?#8221;鏀硅鑰屾垚
CVL-27 Langley 鍏板埄鍙?/a> 鐙珛綰?/td> 鑷?#8220;鍏嬮噷澶叞綰ц交宸℃磱鑸?#8221;鏀硅鑰屾垚
CVL-28 Cabot 鍗′集鐗瑰彿 鐙珛綰?/td> 鑷?#8220;鍏嬮噷澶叞綰ц交宸℃磱鑸?#8221;鏀硅鑰屾垚
CVL-29 Bataan 鐙珛綰?/td> 鑷?#8220;鍏嬮噷澶叞綰ц交宸℃磱鑸?#8221;鏀硅鑰屾垚
CVL-30 San Jacinto 鐙珛綰?/td> 鑷?#8220;鍏嬮噷澶叞綰ц交宸℃磱鑸?#8221;鏀硅鑰屾垚
CV-31 Bon Homme Richard 濂戒漢鐞嗘煡寰峰彿 鍩冨鍏嬫柉綰?/td> 7鏈?鏃?/a>閫褰?/td>
CV-32 Leyte 鍩冨鍏嬫柉綰?/td> 闀胯埌浣撳焹濉炲厠鏂駭錛圠ong-hull Essex錛?/td>
CV-33 Kearsarge 濂囨矙娌誨彿 鍩冨鍏嬫柉綰?/td> 闀胯埌浣撳焹濉炲厠鏂駭錛圠ong-hull Essex錛?/td>
CV-34 Oriskany 濂ラ噷鏂崱灝煎彿 鍩冨鍏嬫柉綰?/td> 闀胯埌浣撳焹濉炲厠鏂駭錛圠ong-hull Essex錛?/td>
CV-35 Reprisal 鍩冨鍏嬫柉綰?/td> 寤洪犱腑閫斿彇娑?/td>
CV-36 Antietam 瀹夋彁鍧﹀彿 鍩冨鍏嬫柉綰?/td> 闀胯埌浣撳焹濉炲厠鏂駭錛圠ong-hull Essex錛?/td>
CV-37 Princeton 鏅灄鏂】鍙?/a> 鍩冨鍏嬫柉綰?/td> 闀胯埌浣撳焹濉炲厠鏂駭錛圠ong-hull Essex錛?/td>
CV-38 Shangri-la 鍩冨鍏嬫柉綰?/td> 闀胯埌浣撳焹濉炲厠鏂駭錛圠ong-hull Essex錛?/td>
CV-39 Lake Champlain 鍩冨鍏嬫柉綰?/td> 闀胯埌浣撳焹濉炲厠鏂駭錛圠ong-hull Essex錛?/td>
CV-40 Tarawa 濉旀媺鐡﹀彿 鍩冨鍏嬫柉綰?/td> 闀胯埌浣撳焹濉炲厠鏂駭錛圠ong-hull Essex錛?/td>
CVB-41 Midway 涓斿矝綰?/a> 4鏈?1鏃?/a>閫褰?/td>
CVB-42 Franklin D. Roosevelt 涓斿矝綰?/td>
CVB-43 Coral Sea 涓斿矝綰?/td>
CVB-44 鏃?/td> 寤洪犺鍒掑彇娑?/td>
CV-45 Valley Forge 紱忓悏璋峰彿 鍩冨鍏嬫柉綰?/td> 闀胯埌浣撳焹濉炲厠鏂駭錛圠ong-hull Essex錛?/td>
CV-46 Iwo Jima 紜:宀涘彿 鍩冨鍏嬫柉綰?/td> 寤洪犺鍒掑彇娑?/td>
CV-47 Philippine Sea 鍩冨鍏嬫柉綰?/td> 闀胯埌浣撳焹濉炲厠鏂駭錛圠ong-hull Essex錛?/td>
CVL-48 Saipan 1鏈?4鏃?/a> 姝e紡闄ゅ焦
CVL-49 Wright 鑾辯壒鍙?/a> 濉炵彮宀涚駭 5鏈?7鏃?/a> 姝e紡闄ゅ焦
CV-50鍒癈V-55 鏃?/td> 鍩冨鍏嬫柉綰?/td> 寤洪犺鍒掑彇娑?/td>
CVB-56鍒癈VB-57 鏃?/td> 涓斿矝綰?/td> 寤洪犱腑閫斿彇娑?/td>
CVA-58 United States 寤洪犱腑閫斿彇娑?/td>
CVA-59 Forrestal 紱忚幈鏂壒綰?/a> 9鏈?1鏃?/a> 姝e紡闄ゅ焦
CVA-60 Saratoga 紱忚幈鏂壒綰?/td> 8鏈?0鏃?/a> 姝e紡闄ゅ焦
CVA-61 Ranger 紱忚幈鏂壒綰?/td> 7鏈?0鏃?/a> 姝e紡闄ゅ焦
CV-62 Independence 紱忚幈鏂壒綰?/td> 9鏈?0鏃?/a> 姝e紡闄ゅ焦
CV-63 Kitty Hawk 5鏈?2鏃?/a> 姝e紡闄ゅ焦
CV-64 Constellation 灝忛拱綰?/td> 8鏈?鏃?/a> 姝e紡闄ゅ焦
CVN-65 Enterprise 浼佷笟鍙?/a> 浼佷笟綰?/td> 鏈嶅焦涓?/td>
CVA-66 America 灝忛拱綰?/td> 8鏈?鏃?/a> 姝e紡闄ゅ焦
CV-67 John F. Kennedy 錛堟敼鑹級灝忛拱綰?/td> 8鏈?鏃?/a> 姝e紡闄ゅ焦
CVN-68 Nimitz 灝肩背鍏瑰彿 鏈嶅焦涓?/td>
CVN-69 Dwight D. Eisenhower 灝肩背鍏圭駭 鏈嶅焦涓?/td>
CVN-70 Carl Vinson 灝肩背鍏圭駭 鏈嶅焦涓?/td>
CVN-71 Theodore Roosevelt 緗楁柉紱忓彿 灝肩背鍏圭駭 鏈嶅焦涓?/td>
CVN-72 Abraham Lincoln 灝肩背鍏圭駭 鏈嶅焦涓?/td>
CVN-73 George Washington 鍗庣洓欏垮彿 灝肩背鍏圭駭 鏈嶅焦涓?/td>
CVN-74 John C. Stennis 灝肩背鍏圭駭 鏈嶅焦涓?/td>
CVN-75 Harry S. Truman 鏉滈瞾闂ㄥ彿 灝肩背鍏圭駭 鏈嶅焦涓?/td>
CVN-76 Ronald Reagan 灝肩背鍏圭駭 鏈嶅焦涓?/td>
CVN-77 George H. W. Bush 灝肩背鍏圭駭 鏈嶅焦涓?/td>
CVN-78 Gerald R. Ford 寤洪犱腑
CVN-79 John F. Kennedy 鑲凹榪彿 紱忕壒綰?/td> 寤洪犱腑
CVN-80 鏈懡鍚?/a> 紱忕壒綰?/td> 璁″垝涓?/td>


polly 2012-08-19 10:33 鍙戣〃璇勮
]]>
楂樺厜璋憋紝澶氬厜璋憋紝瓚呭厜璋?/title><link>http://www.shnenglu.com/polly-yang/archive/2012/08/10/186806.html</link><dc:creator>polly</dc:creator><author>polly</author><pubDate>Fri, 10 Aug 2012 02:42:00 GMT</pubDate><guid>http://www.shnenglu.com/polly-yang/archive/2012/08/10/186806.html</guid><wfw:comment>http://www.shnenglu.com/polly-yang/comments/186806.html</wfw:comment><comments>http://www.shnenglu.com/polly-yang/archive/2012/08/10/186806.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/polly-yang/comments/commentRss/186806.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/polly-yang/services/trackbacks/186806.html</trackback:ping><description><![CDATA[<p align="left">楂樺厜璋辨垚鍍忔槸鏂頒竴浠e厜鐢墊嫻嬫妧鏈紝鍏磋搗浜?O涓栫邯8O騫翠唬錛岀洰鍓嶄粛鍦ㄨ繀鐚涘彂灞曞肪銆傞珮鍏夎氨鎴愬儚鏄浉瀵瑰鍏夎氨鎴愬儚鑰岃█錛岄氳繃楂樺厜璋辨垚鍍忔柟娉曡幏寰楃殑楂樺厜璋卞浘鍍忎笌閫氳繃澶氬厜璋辨垚鍍忚幏鍙栫殑澶氬厜璋卞浘鍍忕浉姣斿叿鏈夋洿涓板瘜鐨勫浘鍍忓拰鍏夎氨淇℃伅銆傚鏋滄牴鎹紶鎰熷櫒鐨勫厜璋卞垎杈ㄧ巼瀵瑰厜璋辨垚鍍忔妧鏈繘琛屽垎綾伙紝鍏夎氨鎴愬儚鎶鏈竴鑸彲鍒嗘垚3綾匯?/p> <p align="left"> <wbr></p> <p align="left">(1) <wbr> 澶氬厜璋辨垚鍍?#8212;—鍏夎氨鍒嗚鯨鐜囧湪 delta_lambda/lambda=0錛?鏁伴噺綰э紝榪欐牱鐨勪紶鎰熷櫒鍦ㄥ彲瑙佸厜鍜岃繎綰㈠鍖哄煙涓鑸彧鏈夊嚑涓嘗孌點?/p> <p align="left"> <wbr></p> <p align="left">(2) <wbr> 楂樺厜璋辨垚鍍?#8212;— 鍏夎氨鍒嗚鯨鐜囧湪 delta_lambda/lambda=0錛?1鏁伴噺綰э紝榪欐牱鐨勪紶鎰熷櫒鍦ㄥ彲瑙佸厜鍜岃繎綰㈠鍖哄煙鏈夊嚑鍗滃埌鏁扮櫨涓嘗孌碉紝鍏夎氨鍒嗚鯨鐜囧彲杈緉m綰с?/p> <p align="left"> <wbr></p> <p align="left">(3) <wbr> 瓚呭厜璋辨垚鍍?#8212;— 鍏夎氨鍒嗚鯨鐜囧湪delta_lambda/lambda =O錛?01鏁伴噺綰э紝榪欐牱鐨勪紶鎰熷櫒鍦ㄥ彲瑙佸厜鍜岃繎綰㈠鍖哄煙鍙揪鏁板崈涓嘗孌點?/p> <p align="left"> <wbr></p> <p align="left">浼楁墍鍛ㄧ煡錛屽厜璋卞垎鏋愭槸鑷劧縐戝涓竴縐嶉噸瑕佺殑鐮旂┒鎵嬫錛屽厜璋辨妧鏈兘媯嫻嬪埌琚祴鐗╀綋鐨勭墿鐞嗙粨鏋勩佸寲瀛︽垚鍒嗙瓑鎸囨爣銆傚厜璋辮瘎浠鋒槸鍩轟簬鐐規(guī)祴閲忥紝鑰屽浘鍍忔祴閲忔槸鍩轟簬絀洪棿鐗規(guī)у彉鍖栵紝涓よ呭悇鏈夊叾浼樼己鐐廣傚洜姝わ紝鍙互璇村厜璋辨垚鍍忔妧鏈槸鍏夎氨鍒嗘瀽鎶鏈拰鍥懼儚鍒嗘瀽鎶鏈彂灞曠殑蹇呯劧緇撴灉錛屾槸浜岃呭畬緹庣粨鍚堢殑浜х墿銆傚厜璋辨垚鍍忔妧鏈笉浠呭叿鏈夊厜璋卞垎杈ㄨ兘鍔涳紝榪樺叿鏈夊浘鍍忓垎杈ㄨ兘鍔涳紝鍒╃敤鍏夎氨鎴愬儚鎶鏈笉浠呭彲浠ュ寰呮嫻嬬墿浣撹繘琛屽畾鎬у拰瀹氶噺鍒嗘瀽錛岃屼笖榪樿兘榪涘鍏惰繘琛屽畾浣嶅垎鏋愩?/p> <p align="left"> <wbr></p> <p align="left">楂樺厜璋辨垚鍍忕郴緇熺殑涓昏宸ヤ綔閮ㄤ歡鏄垚鍍忓厜璋變?nèi)A錛屽畠鏄竴縐嶆柊鍨嬩紶鎰熷櫒錛?O涓栫邯8O騫翠唬鍒濇寮忓紑濮嬬爺鍒訛紝鐮斿埗榪欑被浠櫒鐨勭洰鐨勬槸涓鴻幏鍙栧ぇ閲忕獎娉㈡榪炵畫鍏夎氨鍥懼儚鏁版嵁錛屼嬌姣忎釜鍍忓厓鍏鋒湁鍑犱箮榪炵畫鐨勫厜璋辨暟鎹傚畠鏄竴緋誨垪鍏夋嘗娉㈤暱澶勭殑鍏夊鍥懼儚錛岄氬父鍖呭惈鏁板崄鍒版暟鐧句釜娉㈡錛屽厜璋卞垎杈ㄧ巼涓鑸負(fù)1锝瀕0nm銆傜敱浜庨珮鍏夎氨鎴愬儚鎵鑾峰緱鐨勯珮鍏夎氨鍥懼儚鑳藉鍥懼儚涓殑姣忎釜鍍忕礌鎻愪緵涓鏉″嚑涔庤繛緇殑鍏夎氨鏇茬嚎錛屽叾鍦ㄥ緟嫻嬬墿涓婅幏寰楃┖闂翠俊鎭殑鍚屾椂鍙堣兘鑾峰緱姣斿鍏夎氨鏇翠負(fù)涓板瘜鍏夎氨鏁版嵁淇℃伅錛岃繖浜涙暟鎹俊鎭彲鐢ㄦ潵鐢熸垚澶嶆潅妯″瀷錛屾潵榪涜鍒ゅ埆銆佸垎綾匯佽瘑鍒浘鍍忎腑鐨勬潗鏂欍?/p> <p align="left"> <wbr></p> <p align="left">閫氳繃楂樺厜璋辨垚鍍忚幏鍙栧緟嫻嬬墿鐨勯珮鍏夎氨鍥懼儚鍖呭惈浜嗗緟嫻嬬墿鐨勪赴瀵岀殑絀洪棿銆佸厜璋卞拰杈愬皠涓夐噸淇℃伅銆傝繖浜涗俊鎭笉浠呰〃鐜頒簡</p> <p align="left">鍦扮墿絀洪棿鍒嗗竷鐨勫獎鍍忕壒寰侊紝鍚屾椂涔熷彲鑳戒互鍏朵腑鏌愪竴鍍忓厓鎴栧儚鍏冪粍涓虹洰鏍囪幏鍙栧畠浠殑杈愬皠寮哄害浠ュ強(qiáng)鍏夎氨鐗瑰緛銆傚獎鍍忋佽緪灝勪笌鍏夎氨鏄珮鍏夎氨鍥懼儚涓殑3涓噸瑕佺壒寰侊紝榪?涓壒寰佺殑鏈夋満緇撳悎灝辨槸楂樺厜璋卞浘鍍忋?/p> <p align="left"> <wbr></p> <p align="left">楂樺厜璋卞浘鍍忔暟鎹負(fù)鏁版嵁绔嬫柟浣?cube)銆傞氬父鍥懼儚鍍忕礌鐨勬í鍧愭爣鍜岀旱鍧愭爣鍒嗗埆鐢▃鍜孻鏉ヨ〃紺猴紝鍏夎氨鐨勬嘗闀夸俊鎭互(Z鍗寵醬)琛ㄧず銆傝鏁版嵁绔嬫柟浣撶敱娌跨潃鍏夎氨杞寸殑浠ヤ竴瀹氬厜璋卞垎杈ㄧ巼闂撮殧鐨勮繛緇簩緇村浘鍍忕粍鎴愩?/p><img src ="http://www.shnenglu.com/polly-yang/aggbug/186806.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/polly-yang/" target="_blank">polly</a> 2012-08-10 10:42 <a href="http://www.shnenglu.com/polly-yang/archive/2012/08/10/186806.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>vs + opencv 甯歌閿欒http://www.shnenglu.com/polly-yang/archive/2012/07/30/185613.htmlpollypollyMon, 30 Jul 2012 03:57:00 GMThttp://www.shnenglu.com/polly-yang/archive/2012/07/30/185613.htmlhttp://www.shnenglu.com/polly-yang/comments/185613.htmlhttp://www.shnenglu.com/polly-yang/archive/2012/07/30/185613.html#Feedback0http://www.shnenglu.com/polly-yang/comments/commentRss/185613.htmlhttp://www.shnenglu.com/polly-yang/services/trackbacks/185613.htmlA:搴斿皢瑙e喅鏂規(guī)騫沖彴鏀逛負(fù)win64銆?br />宸ュ叿鏍忎笂鏂圭殑瑙e喅鏂規(guī)騫沖彴—銆嬬偣鍑諱笅鎷夎彍鍗?#8212;銆嬮厤緗鐞嗗櫒—銆嬫椿鍔ㄨВ鍐蟲柟妗堝鉤鍙?#8212;銆嬫柊寤?#8212;銆嬮敭鍏ヨ幏閫夌潃鏂板鉤鍙?#8212;銆媥64
闂灝辮В鍐沖暒錛佸搱鍝堬紒



Q錛欵rror C1189 Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
A:Go to the project properties (Project menu, Properties).  Set 'Use of MFC' to "Use MFC in a Shared DLL".  You have to make this change for both the debug and release configurations

polly 2012-07-30 11:57 鍙戣〃璇勮
]]>
鑸拌埞媯嫻嬪垵姝?/title><link>http://www.shnenglu.com/polly-yang/archive/2012/07/25/185048.html</link><dc:creator>polly</dc:creator><author>polly</author><pubDate>Wed, 25 Jul 2012 11:02:00 GMT</pubDate><guid>http://www.shnenglu.com/polly-yang/archive/2012/07/25/185048.html</guid><wfw:comment>http://www.shnenglu.com/polly-yang/comments/185048.html</wfw:comment><comments>http://www.shnenglu.com/polly-yang/archive/2012/07/25/185048.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/polly-yang/comments/commentRss/185048.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/polly-yang/services/trackbacks/185048.html</trackback:ping><description><![CDATA[綆楁硶鏁堢巼錛屽厛楠岀壒寰侊紝綆楁硶妗嗘灦鏈懆鎼炲畾銆?img src ="http://www.shnenglu.com/polly-yang/aggbug/185048.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/polly-yang/" target="_blank">polly</a> 2012-07-25 19:02 <a href="http://www.shnenglu.com/polly-yang/archive/2012/07/25/185048.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Bilateral Filtering for Gray and Color Imageshttp://www.shnenglu.com/polly-yang/archive/2012/07/24/184893.htmlpollypollyTue, 24 Jul 2012 12:39:00 GMThttp://www.shnenglu.com/polly-yang/archive/2012/07/24/184893.htmlhttp://www.shnenglu.com/polly-yang/comments/184893.htmlhttp://www.shnenglu.com/polly-yang/archive/2012/07/24/184893.html#Feedback0http://www.shnenglu.com/polly-yang/comments/commentRss/184893.htmlhttp://www.shnenglu.com/polly-yang/services/trackbacks/184893.html
  • Introduction
  • The Idea
  • The Gaussian Case
  • Experiments with Black-and-White Images
  • Experiments with Color Images
  • References
  • Introduction

    Filtering is perhaps the most fundamental operation of image processing and computer vision. In the broadest sense of the term "filtering", the value of the filtered image at a given location is a function of the values of the input image in a small neighborhood of the same location. For example, Gaussian low-pass filtering computes a weighted average of pixel values in the neighborhood, in which the weights decrease with distance from the neighborhood center. Although formal and quantitative explanations of this weight fall-off can be given, the intuition is that images typically vary slowly over space, so near pixels are likely to have similar values, and it is therefore appropriate to average them together. The noise values that corrupt these nearby pixels are mutually less correlated than the signal values, so noise is averaged away while signal is preserved.
    The assumption of slow spatial variations fails at edges, which are consequently blurred by linear low-pass filtering. How can we prevent averaging across edges, while still averaging within smooth regions?
    Many efforts have been devoted to reducing this undesired effect. Bilateral filtering is a simple, non-iterative scheme for edge-preserving smoothing.

    Back to Index

    The Idea

    The basic idea underlying bilateral filtering is to do in the range of an image what traditional filters do in its domain. Two pixels can be close to one another, that is, occupy nearby spatial location, or they can be similar to one another, that is, have nearby values, possibly in a perceptually meaningful fashion.
    Consider a shift-invariant low-pass domain filter applied to an image:

    The bold font for
    f and h emphasizes the fact that both input and output images may be multi-band. In order to preserve the DC component, it must be

    Range filtering is similarly defined:

    In this case, the kernel measures the
    photometric similarity between pixels. The normalization constant in this case is

    The spatial distribution of image intensities plays no role in range filtering taken by itself. Combining intensities from the entire image, however, makes little sense, since the distribution of image values far away from
    x ought not to affect the final value at x. In addition, one can show that range filtering without domain filtering merely changes the color map of an image, and is therefore of little use. The appropriate solution is to combine domain and range filtering, thereby enforcing both geometric and photometric locality. Combined filtering can be described as follows:

    with the normalization

    Combined domain and range filtering will be denoted as
    bilateral filtering. It replaces the pixel value at x with an average of similar and nearby pixel values. In smooth regions, pixel values in a small neighborhood are similar to each other, and the bilateral filter acts essentially as a standard domain filter, averaging away the small, weakly correlated differences between pixel values caused by noise. Consider now a sharp boundary between a dark and a bright region, as in figure 1(a).

    (a)

    (b)

    (c)

    Figure 1

    When the bilateral filter is centered, say, on a pixel on the bright side of the boundary, the similarity function
    s assumes values close to one for pixels on the same side, and values close to zero for pixels on the dark side. The similarity function is shown in figure 1(b) for a 23x23 filter support centered two pixels to the right of the step in figure 1(a). The normalization term k(x) ensures that the weights for all the pixels add up to one. As a result, the filter replaces the bright pixel at the center by an average of the bright pixels in its vicinity, and essentially ignores the dark pixels. Conversely, when the filter is centered on a dark pixel, the bright pixels are ignored instead. Thus, as shown in figure 1(c), good filtering behavior is achieved at the boundaries, thanks to the domain component of the filter, and crisp edges are preserved at the same time, thanks to the range component.

    Back to Index

    The Gaussian Case

    A simple and important case of bilateral filtering is shift-invariant Gaussian filtering, in which both the closeness function c and the similarity function s are Gaussian functions of the Euclidean distance between their arguments. More specifically, c is radially symmetric:

    where

    is the Euclidean distance. The similarity function
    s is perfectly analogous to c :

    where

    is a suitable measure of distance in intensity space. In the scalar case, this may be simply the absolute difference of the pixel difference or, since noise increases with image intensity, an intensity-dependent version of it. Just as this form of domain filtering is shift-invariant, the Gaussian range filter introduced above is insensitive to overall additive changes of image intensity. Of course, the range filter is shift-invariant as well.

    Back to Index

    Experiments with Black-and-White Images

    Figure 2 (a) and (b) show the potential of bilateral filtering for the removal of texture. The picture "simplification" illustrated by figure 2 (b) can be useful for data reduction without loss of overall shape features in applications such as image transmission, picture editing and manipulation, image description for retrieval.

    (a)

    (b)

    Figure 2

    Bilateral filtering with parameters sd =3 pixels and sr =50 intensity values is applied to the image in figure 3 (a) to yield the image in figure 3 (b). Notice that most of the fine texture has been filtered away, and yet all contours are as crisp as in the original image. Figure 3 (c) shows a detail of figure 3 (a), and figure 3 (d) shows the corresponding filtered version. The two onions have assumed a graphics-like appearance, and the fine texture has gone. However, the overall shading is preserved, because it is well within the band of the domain filter and is almost unaffected by the range filter. Also, the boundaries of the onions are preserved.

    (a)

    (b)

     

     

     

     

    (c)

    (d)

    Figure 3

    Back to Index

    Experiments with Color Images

    For black-and-white images, intensities between any two gray levels are still gray levels. As a consequence, when smoothing black-and-white images with a standard low-pass filter, intermediate levels of gray are produced across edges, thereby producing blurred images. With color images, an additional complication arises from the fact that between any two colors there are other, often rather different colors. For instance, between blue and red there are various shades of pink and purple. Thus, disturbing color bands may be produced when smoothing across color edges. The smoothed image does not just look blurred, it also exhibits odd-looking, colored auras around objects.

    (a)

    (b)

    (c)

    (d)

    Figure 4

    Figure 4 (a) shows a detail from a picture with a red jacket against a blue sky. Even in this unblurred picture, a thin pink-purple line is visible, and is caused by a combination of lens blurring and pixel averaging. In fact, pixels along the boundary, when projected back into the scene, intersect both red jacket and blue sky, and the resulting color is the pink average of red and blue. When smoothing, this effect is emphasized, as the broad, blurred pink-purple area in figure 4 (b) shows.
    To address this difficulty, edge-preserving smoothing could be applied to the red, green, and blue components of the image separately. However, the intensity profiles across the edge in the three color bands are in general different. Smoothing the three color bands separately results in an even more pronounced pink and purple band than in the original, as shown in figure 4 (c). The pink-purple band, however, is not widened as in the standard-blurred version of figure 4 (b).
    A much better result can be obtained with bilateral filtering. In fact, a bilateral filter allows combining the three color bands appropriately, and measuring photometric distances between pixels in the combined space. Moreover, this combined distance can be made to correspond closely to perceived dissimilarity by using Euclidean distance in the
    CIE-Lab color space. This color space is based on a large body of psychophysical data concerning color-matching experiments performed by human observers. In this space, small Euclidean distances are designed to correlate strongly with the perception of color discrepancy as experienced by an "average" color-normal human observer. Thus, in a sense, bilateral filtering performed in the CIE-Lab color space is the most natural type of filtering for color images: only perceptually similar colors are averaged together, and only perceptually important edges are preserved. Figure 4 (d) shows the image resulting from bilateral smoothing of the image in figure 4 (a). The pink band has shrunk considerably, and no extraneous colors appear.

    (a)

    (b)

    (c)

    Figure 5

    Figure 5 (c) shows the result of five iterations of bilateral filtering of the image in figure 5 (a). While a single iteration produces a much cleaner image (figure 5 (b)) than the original, and is probably sufficient for most image processing needs, multiple iterations have the effect of flattening the colors in an image considerably, but without blurring edges. The resulting image has a much smaller color map, and the effects of bilateral filtering are easier to see when displayed on a printed page. Notice the cartoon-like appearance of figure 5 (c). All shadows and edges are preserved, but most of the shading is gone, and no "new" colors are introduced by filtering.

    Back to Index

    References

    [1] C. Tomasi and R. Manduchi, "Bilateral Filtering for Gray and Color Images", Proceedings of the 1998 IEEE International Conference on Computer Vision, Bombay, India.
    [2] T. Boult, R.A. Melter, F. Skorina, and I. Stojmenovic,"G-neighbors",
    Proceedings of the SPIE Conference on Vision Geometry II, pages 96-109, 1993.
    [3] R.T. Chin and C.L. Yeh, "Quantitative evaluation of some edge-preserving noise-smoothing techniques",
    Computer Vision, Graphics, and Image Processing, 23:67-91, 1983.
    [4] L.S. Davis and A. Rosenfeld, "Noise cleaning by iterated local averaging",
    IEEE Transactions on Systems, Man, and Cybernetics, 8:705-710, 1978.
    [5] R.E. Graham, "Snow-removal - a noise-stripping process for picture signals",
    IRE Transactions on Information Theory, 8:129-144, 1961.
    [6] N. Himayat and S.A. Kassam, "Approximate performance analysis of edge preserving filters",
    IEEE Transactions on Signal Processing, 41(9):2764-77, 1993.
    [7] T.S. Huang, G.J. Yang, and G.Y. Tang, "A fast two-dimensional median filtering algorithm",
    IEEE Transactions on Acoustics, Speech, and Signal Processing, 27(1):13-18, 1979.
    [8] J.S. Lee, "Digital image enhancement and noise filtering by use of local statistics",
    IEEE Transactions on Pattern Analysis and Machine Intelligence, 2(2):165-168, 1980.
    [9] M. Nagao and T. Matsuyama, "Edge preserving smoothing",
    Computer Graphics and Image Processing, 9:394-407, 1979.
    [10] P.M. Narendra, "A separable median filter for image noise smoothing",
    IEEE Transactions on Pattern Analysis and Machine Intelligence, 3(1):20-29, 1981.
    [11] K.J. Overton and T.E. Weymouth, "A noise reducing preprocessing algorithm",
    Proceedings of the IEEE Computer Science Conference on Pattern Recognition and Image Processing, pages 498-507, Chicago, IL, 1979.
    [12] P. Perona and J. Malik, "Scale-space and edge detection using anisotropic diffusion",
    IEEE Transactions on Pattern Analysis and Machine Intelligence, 12(7):629-639, 1990.
    [13] G. Ramponi, "A rational edge-preserving smoother",
    Proceedings of the International Conference on Image Processing, volume 1, pages 151-154, Washington, DC, 1995.
    [14] G. Sapiro and D.L. Ringach, "Anisotropic diffusion of color images",
    Proceedings of the SPIE, volume 2657, pages 471-382, 1996.
    [15] D.C.C. Wang, A.H. Vagnucci, and C.C. Li, "A gradient inverse weighted smoothing scheme and the evaluation of its performance",
    Computer Vision, Graphics, and Image Processing, 15:167-181, 1981.
    [16] G. Wyszecki and W. S. Styles,
    Color Science: Concepts and Methods, Quantitative Data and Formulae, John Wiley and Sons, New York, NY, 1982.
    [17] L. Yin, R. Yang, M. Gabbouj, and Y. Neuvo, "Weighted median filters: a tutorial",IEEE
    Transactions on Circuits and Systems II: Analog and Digital Signal Processing, 43(3):155-192, 1996.



    polly 2012-07-24 20:39 鍙戣〃璇勮
    ]]>
    CString 銆?string 銆?const char*銆乮nt銆乨ouble涔嬮棿鐨勭浉浜掕漿鎹?/title><link>http://www.shnenglu.com/polly-yang/archive/2012/07/24/184890.html</link><dc:creator>polly</dc:creator><author>polly</author><pubDate>Tue, 24 Jul 2012 12:34:00 GMT</pubDate><guid>http://www.shnenglu.com/polly-yang/archive/2012/07/24/184890.html</guid><wfw:comment>http://www.shnenglu.com/polly-yang/comments/184890.html</wfw:comment><comments>http://www.shnenglu.com/polly-yang/archive/2012/07/24/184890.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/polly-yang/comments/commentRss/184890.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/polly-yang/services/trackbacks/184890.html</trackback:ping><description><![CDATA[<p><span style="font-family: Times New Roman; font-size: 14pt">鎴戜滑鍦ㄥ啓紼嬪簭鏃訛紝甯稿父浼?xì)閬囧埌绫诲瀷铦{鎹㈢殑闂銆傜幇鎬葷粨涓浜涘父瑙佺殑綾誨瀷杞崲銆?/span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">1錛宑onst char*錛圕椋庢牸瀛楃涓詫級涓巗tring涔嬮棿杞崲錛?/span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">             錛?錛?const char*鍙互鐩存帴瀵箂tring綾誨瀷璧嬪鹼紝渚嬪錛?/span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">                       const char* pchar = "qwerasdf";</span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">                       stringstr = pchar;</span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">             錛?錛?string閫氳繃c_str()鍑芥暟杞崲涓篊椋庢牸瀛楃涓詫紝渚嬪錛?/span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">                       string str = "qwerasdf";</span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">                       const char* pchar = str.c_str();</span></p> <p><span style="font-size: 18px"></span> </p> <p><span style="font-family: Times New Roman; font-size: 14pt">2錛宑onst char*綾誨瀷鍙互鐩存帴緇機(jī)String綾誨瀷璧嬪鹼紝渚嬪錛?/span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">               const char* pchar = "qwerasdf";</span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">               CString str = pchar;</span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">3錛宻tring綾誨瀷鍙橀噺杞負(fù)涓篊string綾誨瀷鍙橀噺</span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">             CString綾誨瀷鍙橀噺鍙互鐩存帴緇檚tring綾誨瀷鍙橀噺璧嬪鹼紝浣嗘槸string綾誨瀷涓嶈兘瀵笴String綾誨瀷鐩存帴璧嬪箋傞氳繃鍓嶄袱綾?/span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">      杞崲鎴戜滑鍙互寰楀埌錛?/span><span style="font-family: Times New Roman; font-size: 14pt">string綾誨瀷鍙橀噺杞崲涓篶onst char*綾誨瀷錛岀劧鍚庡啀鐩存帴璧嬪煎氨鍙互浜嗐備緥濡傦細(xì)</span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">       CString cstr錛?/span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">       sring str = “asdasd”錛?/span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">       cstr = str.c_str();</span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">      鍚岀悊錛孋Strng綾誨瀷鍙橀噺鍏堣漿鎹負(fù)string綾誨瀷鍦ㄨ皟鐢╟_str()鍑芥暟灝卞彲浠ュ畬鎴愬悜</span><span style="font-family: Times New Roman; font-size: 14pt">const char*綾誨瀷鐨勮漿鎹€備緥濡傦細(xì)</span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">      CString cStr = "adsad";</span><span style="font-size: 18px">   </span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">      string str = cStr;  </span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">      const char* pchar = str.c_str();<br /></span><span style="font-family: Times New Roman; font-size: 14pt">4錛宒ouble錛宨nt杞瑂tring<br /></span></p> <p><span style="font-size: 18px"></span>      <span style="font-family: Times New Roman; font-size: 14pt">double temp;</span><br />   <span style="font-family: Times New Roman; font-size: 14pt">stringstream strStream;</span><br />   <span style="font-family: Times New Roman; font-size: 14pt">strStream<<temp;</span><br />   <span style="font-family: Times New Roman; font-size: 14pt">string ss = strStream.str()</span> <br /><br /><span style="font-family: Times New Roman; font-size: 14pt">   string 杞琩ouble錛宨nt </span><br /><span style="font-family: Times New Roman; font-size: 14pt">   string.atoi   ,   string.atof</span></p> <p><span style="font-family: Times New Roman; font-size: 14pt">     浠庝笂闈㈡垜浠彲浠ヤ笂闈㈢湅鍑猴紝閫氳繃綾誨瀷涔嬮棿鐨勭浉浜掕漿鍖栵紝浼?xì)鋴涉湰鏉ヨ閫氳繃澶嶆潅鐨勫嚱鏁版潵瀹屾垚鐨勭被鍨嬭漿鎹㈠彉寰楃畝鍗曟槗鎳傘?/span></p><img src ="http://www.shnenglu.com/polly-yang/aggbug/184890.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/polly-yang/" target="_blank">polly</a> 2012-07-24 20:34 <a href="http://www.shnenglu.com/polly-yang/archive/2012/07/24/184890.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.shnenglu.com/" title="精品视频久久久久">精品视频久久久久</a> <div class="friend-links"> </div> </div> </footer> <a href="http://www.6dyx.cn" target="_blank">香港aa三级久久三级</a>| <a href="http://www.cdmt.org.cn" target="_blank">久久久噜噜噜久久中文字幕色伊伊</a>| <a href="http://www.gsappxz.cn" target="_blank">久久综合九色综合欧美狠狠</a>| <a href="http://www.biancheng88.cn" target="_blank">91性高湖久久久久</a>| <a href="http://www.51keepruning.cn" target="_blank">久久精品无码av</a>| <a href="http://www.wwwh0930com.cn" target="_blank">一本色道久久88—综合亚洲精品</a>| <a href="http://www.nanning315.cn" target="_blank">日产精品久久久久久久</a>| <a href="http://www.37114.cn" target="_blank">久久久久久狠狠丁香</a>| <a href="http://www.xiewanliang.cn" target="_blank">久久亚洲精品无码观看不卡</a>| <a href="http://www.geidang.cn" target="_blank">久久久国产打桩机</a>| <a href="http://www.qtvc.cn" target="_blank">亚洲综合久久综合激情久久</a>| <a href="http://www.cbanqi.cn" target="_blank">亚洲国产综合久久天堂</a>| <a href="http://www.wwcx.com.cn" target="_blank">亚洲午夜久久久久久久久电影网</a>| <a href="http://www.cn-yb.cn" target="_blank">国产精品久久久久久</a>| <a href="http://www.imran.com.cn" target="_blank">久久青青草原精品国产软件 </a>| <a href="http://www.51lol.cn" target="_blank">国产精品久久久香蕉</a>| <a href="http://www.020rj.cn" target="_blank">国内精品人妻无码久久久影院 </a>| <a href="http://www.phpluck.cn" target="_blank">狠狠人妻久久久久久综合</a>| <a href="http://www.fanqiejidi.cn" target="_blank">综合久久精品色</a>| <a href="http://www.lnboxue.cn" target="_blank">青青草原综合久久大伊人精品</a>| <a href="http://www.taokecai.cn" target="_blank">一本色道久久88综合日韩精品</a>| <a href="http://www.greendaily.cn" target="_blank">久久久久99精品成人片试看</a>| <a href="http://www.cyjeans.com.cn" target="_blank">久久露脸国产精品</a>| <a href="http://www.gvyf.cn" target="_blank">国产精品久久自在自线观看</a>| <a href="http://www.sansiwu.cn" target="_blank">欧美精品九九99久久在观看</a>| <a href="http://www.tthzk.cn" target="_blank">亚洲国产精品一区二区久久</a>| <a href="http://www.zhe38.cn" target="_blank">嫩草伊人久久精品少妇AV</a>| <a href="http://www.hbhshj.cn" target="_blank">亚洲国产精品综合久久网络</a>| <a href="http://www.xibu520.cn" target="_blank">久久99久久99小草精品免视看</a>| <a href="http://www.esfjjr.cn" target="_blank">精品国产青草久久久久福利</a>| <a href="http://www.dbwlcom.cn" target="_blank">久久国产香蕉视频</a>| <a href="http://www.job158.cn" target="_blank">青青草国产成人久久91网</a>| <a href="http://www.i35idc.cn" target="_blank">久久久久人妻精品一区二区三区</a>| <a href="http://www.yahooproxy.cn" target="_blank">欧美精品丝袜久久久中文字幕 </a>| <a href="http://www.laqn.cn" target="_blank">国产精品无码久久久久</a>| <a href="http://www.kh875.cn" target="_blank">人妻少妇久久中文字幕一区二区</a>| <a href="http://www.agentsystem.cn" target="_blank">欧美大战日韩91综合一区婷婷久久青草 </a>| <a href="http://www.9258bbs.cn" target="_blank">日本国产精品久久</a>| <a href="http://www.rnif.cn" target="_blank">国产ww久久久久久久久久</a>| <a href="http://www.dnnmodules.cn" target="_blank">丰满少妇高潮惨叫久久久</a>| <a href="http://www.cd919.cn" target="_blank">亚洲AV无码成人网站久久精品大</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>