edge-detection

matlab: find outer edges of objects in a picture

醉酒当歌 提交于 2019-12-04 13:10:25
I have a picture contains blood smear. What I want to do is to detect the edges of those cells. I first convert this color image into grayscale image and then fill holes in those cells. And I use the edge() function in matlab to detect edges. Since you can observe the inner part of some cell is much lighter, so there are edges detected inside one cell. The result is shown below: So is there any methods that only the outer edges of those cells can be detected? My code is shown below: I = imread('film02_pattern.jpg'); t1=graythresh(I); k1=im2bw(I,t1); k1=~k1; se = strel('disk',1); k1=imfill(k1,

Getting corners from convex points

点点圈 提交于 2019-12-04 12:02:36
I have written algorithm to extract the points shown in the image. They form convex shape and I know order of them. How do I extract corners (top 3 and bottom 3) from such points? I'm using opencv. HugoRune if you already have the convex hull of the object, and that hull includes the corner points, then all you need to to do is simplify the hull until it only has 6 points. There are many ways to simplify polygons, for example you could just use this simple algorithm used in this answer: How to find corner coordinates of a rectangle in an image do for each point P on the convex hull: measure

what are my research areas for image processing project?

霸气de小男生 提交于 2019-12-04 11:44:54
For my final year project I'm doing a vehicle detail modification system. the system should be able to these following tasks. I'm using a size image of a vehicle taken from a fixed distance lets say from 5m. and different colors and rim images are stored I'm my application, that is is the basic idea. detect the tire and the alloy rim of the vehicle detect and measure the rim size of the installed rim apply a new alloy rim to the vehicle ( embed or put the alloy rim on top of the original image haven't decided yet) change color of the vehicle body apply tint colors to the vehicle windows

EmguCV Cut Face+Neck Skin Only And Save New Image

那年仲夏 提交于 2019-12-04 11:05:53
In my app, I will input a human image and I want to get the face and neck only of that person as output in separate image. Example: Below image as input:(Source: http://www.fremantlepress.com.au ) And I want to get the up image as output: I want to perform the following algorithm: 1. Detect face 2. Select (face region * 2) area 3. Detect skin and neck 4. Cut the skin region of the selected image 5. Save that cut region into a new image As going through the EmguCV wiki and other online resources, I am confident to perform the step 1 and 2. But I am not sure how can I accomplish step 3 and 4.

Edge Detection and transparency

不羁岁月 提交于 2019-12-04 06:54:36
Using images of articles of clothing taken against a consistent background, I would like to make all pixels in the image transparent except for the clothing. What is the best way to go about this? I have researched the algorithms that are common for this and the open source library opencv . Aside from rolling my own or using opencv is there an easy way to do this? I am open to any language or platform. Thanks If your background is consistend in an image but inconsistent across images it could get tricky, but here is what I would do: Separate the image into some intensity/colour form such as

Having difficulties detecting small objects in noisy background. Any ways to fix this?

此生再无相见时 提交于 2019-12-04 05:49:18
I am trying to make a computer vision program in which it would detect litter and random trash in a noisy background such as the beach (noisy due to sand). Original Image: Canny Edge detection without any image processing: I realize that a certain combination of image processing technique will help me accomplish my goal of ignoring the noisy sandy background and detect all trash and objects on the ground. I tried to preform median blurring, play around and tune the parameters, and it gave me this: It preforms well in terms of ignoring the sandy background, but it fails to detect some of the

What is the difference between a Line and an Edge in image detection?

元气小坏坏 提交于 2019-12-04 05:12:13
问题 We have been learning about methods like Sobel and Roberts' convolution matrices to detect edges within images, extending to the Canny method to clear them up. But now, we are learning about 'Line' detection, as opposed to 'Edge' detection - with methods like Hough Transform. Problem is - I've no idea how to even conceptualize the difference between a 'Line' and an 'Edge'. Can someone explain this difference to me without the use of complex mathematical equations etc? 回答1: An edge is a

opencv matching edge images

 ̄綄美尐妖づ 提交于 2019-12-03 21:09:55
I am working on the project and part of it is to recognize objects recorded on camera. So to be more specofic: I am using OpenCV I have correctly setup camera and am able to retrieve pictures from it I have compiled and experimented with number of demos from OpenCV I need a scale- AND rotation- invariant algorithm for detection Pictures of original objects are ONLY available as edge-images All feature detection/extraction/matching algorithms I have seen so far are working reasonably well with gray-scale images (like photos), however due to my project specs I need to work with edge images

OpenCV Android Create New Image Using the Edges of the Largest Contour

℡╲_俬逩灬. 提交于 2019-12-03 16:56:20
I am able to detect the largest square/rectangle (in green) in an image. However, I want to convert the largest square/rectangle detected in the image into a new image (to be stored in a new Mat). Here's the return image of this function that has the largest rectangle/square on it: http://img153.imageshack.us/img153/9308/nn4w.png Here is my code so far: private Mat findLargestRectangle(Mat original_image) { Mat imgSource = original_image; //convert the image to black and white Imgproc.cvtColor(imgSource, imgSource, Imgproc.COLOR_BGR2GRAY); //convert the image to black and white does (8 bit)

Need only one edge in Canny edge algorithm

匆匆过客 提交于 2019-12-03 13:03:49
问题 When i use the canny edge algorithm, it produces the 2 edges opposite the thick colored line as expected, but i want only one edge to be displayed so as to make my line and curve detection algorithm much less complicated, any ideas on how i can make that happen ? Here is the code : bool CannyEdgeDetection(DataStructure& col) { Mat src, src_gray; Mat dst, detected_edges, fin; int WhiteCount = 0, BCount = 0; char szFil1[32] = "ocv.bmp"; char szFil2[32] = "dst.bmp"; src = imread(szFil1); dst =