Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
openCV sobel
schneemoca
follow
0
9-30-2009 11:00 AM
70 views
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
Our Bodies, Our Culture
32 Astounding Architectural Designs of Gingerbread Houses
Photographs of snakes like you've never seen before
Paralyzed man 'turns thoughts into sounds'
Franken's Anti-Rape Amendment Survives
I Think She Hates Me...
Men prefer smell of bacon to babies
Candied Bacon!
Colourful Snowflakes
Aerial photographs of England
visit the
Top Clips page
View the Top Clips from
September 30, 2009
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/33e1d5be-7141-4696-a955-b6d8e57a7b3b/07AD9631-3ED6-41F3-AE4A-389C00B85748/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://tm86eublog.blog42.fc2.com/blog-entry-185.html" href="http://tm86eublog.blog42.fc2.com/blog-entry-185.html" style="font-size: 11px;">tm86eublog.blog42.fc2.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://tm86eublog.blog42.fc2.com/blog-entry-185.html"><DIV>OpenCV についてですが、 OpenCV の多数の関数は CvArr* (中身は typedef void CvArr;) という型の引数を持つ関数で、 IplImage* 型の画像を(暗黙に)キャストして突っ込むと言う感じです。 IplImage* 型以外にもマトリックスなどの型も突っ込めるます。しかし、どの型が突っ込めるかは関数によってまちまちで…(C++ でラップしようとすると)非常に困ります。</DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://tm86eublog.blog42.fc2.com/blog-entry-185.html"><DIV>結局、"オブジェクト指向じゃない"というのが根本の問題なのです。また、エラー処理もユーザー指定のエラーハンドラを指定できるだけです。C++ でどうやって例外実装しましょう?</DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://tm86eublog.blog42.fc2.com/blog-entry-185.html">あと、 IplImage には色の深度やカラーチャンネルの数を示すメンバがあるのですが、例えば<BR /><PRE ゴシック="" MS="">void cvSobel( const CvArr* src, CvArr* dst, int xorder, int yorder, int aperture_size=3 );</PRE><DIV>という、エッジ検出などで使われるフィルタを呼び出すとき、 src と dst に指定する IplImage の色の深度とカラーチャンネルの数が一致していないと実行時エラーが発生します。設計の根本的な問題になってしまうのですが、テンプレートを使ってジェネリックに設計すれば、このようなエラーはコンパイル時に静的に検出できるのになぁと思ったりしました。</DIV></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/07AD9631-3ED6-41F3-AE4A-389C00B85748/blog/" title="blog or email this clip"><img src="http://content9.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK