图像处理库 simple-iphone-image-processing

openkk 13年前
     <p>这是 iPhone 上一个简单的图像处理库。支持的图像操作包括:</p>    <ul>     <li>Canny edge detection - <a href="/misc/goto?guid=4959498245000010551" rel="nofollow">http://en.wikipedia.org/wiki/Canny_edge_detection</a> </li>     <li>Histogram equalisation - <a href="/misc/goto?guid=4959498245130733843" rel="nofollow">http://en.wikipedia.org/wiki/Histogram_equalisation</a> </li>     <li>Skeletonisation - <a href="/misc/goto?guid=4959498245306908761" rel="nofollow">http://en.wikipedia.org/wiki/Topological_skeleton</a> </li>     <li>Thresholding, adaptive and global - <a href="/misc/goto?guid=4959498245402113752" rel="nofollow">http://en.wikipedia.org/wiki/Thresholding_(image_processing</a>) </li>     <li>Gaussian blur (used as a preprocessing step for canny edge detection) - <a href="/misc/goto?guid=4958831476335827977" rel="nofollow">http://en.wikipedia.org/wiki/Gaussian_blur</a> </li>     <li>Brightness normalisation - <a href="/misc/goto?guid=4959498245659690007" rel="nofollow">http://en.wikipedia.org/wiki/Normalization_(image_processing</a>) </li>     <li>Connected region extraction - <a href="/misc/goto?guid=4959498245756206530" rel="nofollow">http://en.wikipedia.org/wiki/Blob_extraction</a> </li>     <li>Resizing - uses interpolation </li>    </ul>    <p>示例代码:</p>    <pre class="brush:cpp; toolbar: true; auto-links: false;">// convert to grey scale and shrink the image by 4 - this makes processing a lot faster! ImageWrapper *greyScale=Image::createImage(srcImage, srcImage.size.width/4, srcImage.size.height/4);  // do a gaussian blur and then extract edges using the canny edge detector // you can play around with the numbers to see how it effects the edge extraction // typical numbers are  tlow 0.20-0.50, thigh 0.60-0.90 ImageWrapper *edges=greyScale.image->gaussianBlur().image->cannyEdgeExtract(0.3,0.7); // show the results resultImage.image=edges.image->toUIImage()</pre>    <br />    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1322925000468" target="_blank">http://www.open-open.com/lib/view/home/1322925000468</a></p>    <br />