edge-detection

How to use Chamfer Matching algorithm for finding 'Similar Images'

天涯浪子 提交于 2019-11-29 08:55:09
问题 I would like to ask for more information on how Chamfer Matching algorithm (an edge matching algorithm) can be used to find 'similar' images. I would like to know if it is possible to place a 'score' for the matched results. 回答1: The Chamfer Matching Algorithm basically calculates the distance (dis-similarity) between two images. The basic idea is to: Extract the edge/contours of a query image as well as target image. Take one point/pixel of contour in query image and find the distance of a

How can I use the latest version of Imagemagick on Heroku?

自作多情 提交于 2019-11-29 06:35:39
Heroku Cedar-14 stack currently runs a version of ImageMagick (6.7.7-10) that is nearly a year old: Running `identify -version` attached to terminal... up, run.8227 Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC Features: OpenMP I want to use the -canny option that performs edge detection in an image, but this was only introduced in a later version of ImageMagick. The only available buildpack for ImageMagick on Heroku does not work on the Cedar-14 stack: https://github.com/mcollina/heroku-buildpack-imagemagick

Creation of edge detection based image in PHP

偶尔善良 提交于 2019-11-29 01:15:10
问题 I'm curious - is it possible to ahieve in PHP: 1) Send image file to server 2) Process image = detect edges and create simple strokes basing on the edges 3) Save file on server / send it to user's browser / whatever Here is some "sample" file ;P (as You can see it wasn't made using any edge detection enabled program, but by hand - just as an example): http://i51.tinypic.com/5vzo0x.jpg Thanks! 回答1: If you can use ImageMagick, there is the --charcoal filter: The charcoal effect is meant to

Image Processing - Implementing Sobel Filter

帅比萌擦擦* 提交于 2019-11-28 17:14:31
I've got a task to implement Sobel filter which is, as you know, an image processing filter for edge detection. But unfortunately, I've got no experience in image processing field, to the extent that I don't even know how images are represented in computer. Totally no knowledge in this field. I've read some papers and PDFs but they focus on many topics which I feel that I may not need them for my task. I'd be happy to know your suggestions or if there is any particular paper, PDF, tutorial or quick guide for this purpose. Thank you EDIT: Thank you all :) The result of our work can be

Why Sobel operator looks that way?

自古美人都是妖i 提交于 2019-11-28 17:04:34
问题 For image derivative computation, Sobel operator looks this way: [-1 0 1] [-2 0 2] [-1 0 1] I don't quite understand 2 things about it, 1.Why the centre pixel is 0 ? Can't I just use an operator like below, [-1 1] [-1 1] [-1 1] 2.Why the centre row is 2 times the other rows? I googled my questions, didn't find any answer which can convince me. Please help me. 回答1: In computer vision, there's very often no perfect, universal way of doing something. Most often, we just try an operator, see its

DETECT the Edge of a Document in iPhoneSDK

☆樱花仙子☆ 提交于 2019-11-28 16:45:52
I am looking something like attached image, How can I implement this in iPhoneSDK. Can anybody suggest me some open source API or Algorithm Code to detect the corners of captured image of a document. Some How, I got an open source API called OpenCV which recognize the Human Face very well. I want to use the same API if possible.Now the problem Is how can I make the changes in those static libraries according to my requirement to Scan the Document edges. Alternatively , how to detect for the square/rectangle object in the captured image ? Marcus Gründler When you are already using openCV you

OpenCV Edge/Border detection based on color

南笙酒味 提交于 2019-11-28 16:44:31
I'm fairly new to OpenCV, and very excited to learn more. I've been toying with the idea of outlining edges, shapes. I've come across this code (running on an iOS device), which uses Canny. I'd like to be able to render this in color, and circle each shape. Can someone point me in the right direction? Thanks! IplImage *grayImage = cvCreateImage(cvGetSize(iplImage), IPL_DEPTH_8U, 1); cvCvtColor(iplImage, grayImage, CV_BGRA2GRAY); cvReleaseImage(&iplImage); IplImage* img_blur = cvCreateImage( cvGetSize( grayImage ), grayImage->depth, 1); cvSmooth(grayImage, img_blur, CV_BLUR, 3, 0, 0, 0);

Algorithm to detect corners of paper sheet in photo

点点圈 提交于 2019-11-28 14:56:03
What is the best way to detect the corners of an invoice/receipt/sheet-of-paper in a photo? This is to be used for subsequent perspective correction, before OCR. My current approach has been: RGB > Gray > Canny Edge Detection with thresholding > Dilate(1) > Remove small objects(6) > clear boarder objects > pick larges blog based on Convex Area. > [corner detection - Not implemented] I can't help but think there must be a more robust 'intelligent'/statistical approach to handle this type of segmentation. I don't have a lot of training examples, but I could probably get 100 images together.

How to detect the Sun from the space sky in OpenCv?

北城余情 提交于 2019-11-28 07:01:44
I need to detect the Sun from the space sky. These are examples of the input images: I've got such results after Morphologic filtering ( open operation for twice ) Here's the algorithm code of this processing: // Color to Gray cvCvtColor(image, gray, CV_RGB2GRAY); // color threshold cvThreshold(gray,gray,150,255,CV_THRESH_BINARY); // Morphologic open for 2 times cvMorphologyEx( gray, dst, NULL, CV_SHAPE_RECT, CV_MOP_OPEN, 2); Isn't it too heavy processing for such a simple task? And how to find the center of the Sun? If I find white points, than I'll find white points of big Earth ( left top

Better algorithm for edge filter in video programming

给你一囗甜甜゛ 提交于 2019-11-28 05:38:10
问题 I'm still working on the last program and although I finally found out how to solve the problem (on how to filter the biggest contour), I now have a new question, or rather a problem. As you can see I am using Canny algorithm for searching the edges in the video. But the object I will using for the detection has no particular color so when the object's color is about the same as the surrounding's color (for example if the object is silver and the background is white) the object's edge will