Draw charts using c# with a lot of data [closed] - c#

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
When i drew line charts using c# with a lot of data(maybe 10 million~100 million), it's not loaded. c# window form was broken.
i can't reduce these data because all of data are important.

Surely it is impossible to show all 10 million data points on a screen. My current screen resolution at 1920x1080 only has about 2M pixels. So even if you show all the points from your data, there will not be enough screen space to show it all.
So you'll need to either reduce your data size by smoothing out the graph data or show only parts of your data at a time.

Use for example Oxyplot - you just bind data, and the library does all the work - zooming, paning, smoothing graphs.

Take a look at a package like HoloView for Python - it supports big pictures with zoom in capabillity.

Related

How to Make Undo in unity [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 3 years ago.
Improve this question
I am doing Coloring Game. Where i am doing coloring the picture. I have done that. But i have to undo the color . It should revert back .
For eg: windows paint. Draw and Undo Same Feature. can any one can post sample code.
This is a very broad topic. There are many ways to solve this.
For pixel-based drawing (as opposed to vector-based), the most straightforward method is to save a copy of the image before each drawing operation. ("Save" in this case means make a copy in memory, not write it to disk.) To undo an operation, revert to the previous version of the image. Even "large" images these days are relatively small compared to the amount of RAM available on a typical machine. Keeping a list of, say, 20 images, giving 20 undo steps, shouldn't be a problem.
For vector-based drawing, keep a List<> of objects as they are drawn. To undo, delete the last object that was added.

How to extract image features through 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 5 years ago.
Improve this question
My adviser told me to use Accord Framework for C# to extract features and patterns from images. Our project is about image analysis and comparison of tobacco leaves. Does anyone here have an idea on how to do it? Thank you.
This is pretty high level stuff, but from what I've learned in my time faffing with it, I'd use the Accord.Imaging library to scan your pictures. Followed by using the Accord.Neuro namespace to "learn" from some manual data you feed into it.
Seems your goal is to create a program that scans images quickly, gleaning only the useful data from the full image, and then checking for some particular features of the image. I've never used the library, but it looks like it'd be possible to use it.

Finding bar code from an image file [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 do have a set of image files. Some of the files contains a bar code and I want to separate those from others. In c# how to find the presence of a bar code in an image file??
You have to apply some computer vision algorithms. You can develop them using OpenCV (via P/Invoke in C#), or EmguCV (http://www.emgu.com/wiki/index.php/Main_Page) which is .NET wrapper for OpenCV. There are also libraries made specific for barcode detection - ZXing comes to my mind.
If the bar codes are located at fixed positions, you can simply save these areas from the images to separate images and process them. If you need to locate the barcodes in the first place, you can use EmguCV for pattern recognition.

2d-bin-packing Algorithm to place a rectangle in x,y location? [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 am implementing 2d-bin-packing algorithm in canvas. My task is to place rectangles as optimal as it can be on a canvas.
the following shows how to do it:
http://incise.org/2d-bin-packing-with-javascript-and-canvas.html
BUT, it starts with the origin. I would like to tell the algorithm where to put a rectangle and that the next one not to be on top of him.
What should be changed in the code?
Is there another algorithm to use for it?
I know a better algorithm(in terms of compactness, not speed) than the one you linked to is called MaxRects.
This was my implementation of it in C++. While not fast, it was very effective at packing compactly.
This is a pdf discussing and comparing all sorts of algorithms in terms of both time and compactness.
EDIT:
I threw together an example of an image packed using MaxRects .

C# image analysis library [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 4 years ago.
Improve this question
I have to develop a small application that gets some images and then counts the items in the image. It is something like a satellite image with a road and I need to count the cars.
Can you give me some hints where to start? I am completely lost.
Thanks a lot,
Radu
Have you checked out OpenCV? Emgu CV provides the .NET bindings
Image processing library:
OpenCV or if you have Matlab with the image processing toolbox it would be very nice.
Algorithm wise
Counting cars on a road is not as simple as it appears. Lets suppose they have a invariant scale (say 1.0).
Create yourself a Hough transform algo to vote for rectangles with about the same width and height as your cars.
In your vote buffer find the 'n' greatest vote scores and this is your number of cars.
This is not so complicated and OpenCV can be pretty useful. You can estimate the maximum value of your hough score for each car so you can set thresholds to skip outliers.

Categories