is it possible for Canny Edge to measure? [closed] - c#

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Hi sirs I'm just wondering if is it possible for me to measure the height or width of an object using canny edge?
and if there's other way?

As #BartoszKP correctly stated, there are numerous ways on how to solve your problem. If, however, you want to go ahead and solve it with the help of the Canny edge detection you could do something like this:
Create Canny edge image
Do Hough line detection (here is an example in Emgu) to get geometrical information on where the lines in your image are - they might now represent your clothing article outline in a much more usable way
Use the geometrical information to rule out the non-shoulder lines - normally you should have all the information you need on all the lines (like where they are exactly in the image). That information might just enable you to throw away, let's say, the bottom end of the clothing article.
Use the geometrical information of the remaining lines to calculate your shoulder width or whatever you want to calculate.

Related

Image Processing in C# to Count Shapes [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Looking to write a piece of software that can take in images like this, and count the number of circular "holes" in the picture. You can see that there are circular holes, as well as non-circular holes. The image is basically a plastic plane consisting of cylinders melted together, and the diamond-ish holes should not be counted.
I am at the point where I can load the image into a C# WPF application, and resize or recenter the image to where I want to work with, but how to count the shadows or circular holes is not something I've been able to find in my research so far.
What I've thought about is having the user place a line on top of the image that crosses the holes, and counting how many times on that line the color drops approaching black, but that seems time consuming.
Any help in solving this problem would be appreciated even if it's referring to a manual or textbook/reference on image processing in this form.
I will not go too much into detail here. What you are attempting to do is a very common problem in image processing. Finding groups of similar pixels and sorting them by shape / size.
https://en.wikipedia.org/wiki/Blob_detection
https://en.wikipedia.org/wiki/Image_segmentation
https://en.wikipedia.org/wiki/Statistical_classification
Will give you a good starting point into this topic.
Basically you separate the image into regions that belong to the plastic and regions that belong to the holes. Then you find connected regions of "hole-pixels". Once you have that you can calculate their area and/or some shape descriptors like circularity to classify your regions.
I suggest you read any book on image processing fundamentals befor you continue. That's very basic knowledge anyone should know befor writing any code...

Delaunay triangulation - How to prevent twisted mesh? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I've found a good sample of triangulation: High performance version by Salvatore Previti in C# 2.0.
The left side of the mesh is twisted in the following image. Is there some way to prevent it?
Possible duplicate:
So I have found a relatively cheap but imperfect work-around. My super triangle is programmatically determined to surround the sites' bounding box without intersecting its sides. This idea was caused by all sorts of frustrating problems with Java considering some of my calculated circumcenter coordinates or distances between coordinates to be infinite. This caution led me to make my super triangle so small that its vertices sometimes fell in valid triangles' circumcenters. Increasing the size of the super triangle has made the problem seem to disappear. However, it is possible that a triangle on the convex hull can be so obtuse that one of the vertices still could fall inside a valid circumcircle.
[1]Bowyer-Watson algorithm: how to fill "holes" left by removing triangles with super triangle vertices

How to Read Text From Bitmap in C#? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am creating a program which relies heavily on image recognition. I am doing this by taking a screenshot, and then determining whether a pre-determined image exists in the location of my screenshotting.
However, for my program, I also need to be able to take a screenshot of a location in which there will be text, specifically numbers. It will be regular, in the same font, but it will be different numbers every time.
How can I turn this kind of information from a bitmap into an integer I can use in my code?
Thanks.
This is not an easy task, it is essentially optical character recognition (OCR). There is a very similar conversation here.
OCR with the Tesseract interface
You might also want to look at this:
http://www.leadtools.com/sdk/ocr/default.htm?SrcOrigin=Google-CPC-OCR%20API&MatchType=e&AdPos=1t2&gclid=CLjXx4Gx6K8CFdA2pAodAXth1Q
Even beyond the OCR, you will need to scan the image and find the actual text, and this might be tricky as well. If the text is not always in the same location you will quickly find yourself in the "computer vision" space.
You're going to need to look for OCR, or Optical Character Recognition, in order to pull data from images into a string. This is an entire field in and of itself, so sadly there's no simple answer, but there may be a C# library out there for you to use, or C++ if you're comfortable with wrapping.

What kind of user interaction and visual transforms do I need? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I will apologize in advance if this appears vague. The problem I am having is that I am not certain how to properly articulate what I want to achieve into the correct question. I will try to describe my goal.
This is for a windows 8 tablet app. Imagine a set of rectangles across the top of the screen, much like piano keys. The user will drag a key down a little (I can do this). Then touching the top end of the rectangle they will drag their finger in a circle around it, as they do so the rectangle will fan out into an actual circle. Then when finished they would drag the top around the opposite way closing it. Sort of like one of those Japanese hand fans.
What do I search for or how do I phrase this in such a way that will point me in the right direction.
Thanks in advance, its maddening not being able figure out what I need search for.
My apologies, I should have phrased this question better.
To provide an answer to my query:
Shape manipulation of the type I am describing I believe can be accomplished a couple of ways. One possibility is through the use of animations. The other method (which I am currently pursuing) involves the use of the Polygon shape and the ManipulationDelta event. By utilizing the rotation event it is possible to adjust the points of the shape itself instead of applying the actual rotation.

Adding footers to existing pdf documents using iTextSharp [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I was wondering if anyone knew how to add text to an existing pdf document using iTextSharp. I know this question has been asked before but I am trying to add a footer to certain pages in the bottom right hand corner of the document, none of the other posts have helped me and I cannot find any solid info on it elsewhere.
Adding a footer is done using PdfStamper and the GetOverContent() method. See TwoPasses.cs for an example. For more info on this example, please read chapter 6 of my book.
Note that the example assumes that the pages are of size A4 and that the lower-left corner has the coordinate x=0,y=0. You say you have found other answers (tell us where), but that they didn't help (tell us why not). A common mistake you may have found while searching for an answer is to make the wrong assumptions about the MediaBox and the CropBox of the existing PDFs. Unfortunately, you're not telling us what you've tried (and as a result you risk that your question will be closed).

Categories

Resources