Click here to Skip to main content
15,887,952 members
Everything / Processing

Processing

processing

Great Reads

by Thomas Nielsen - getCore
This article will take a dive into one of the reasons why code sometimes sands over.
by Grasshopper.iics
Easy Image Inpainting using Local Binary Pattern
by Jochen Haar
Class to manage the content of Comma Separated Value Files or to deal with Structured Tables in memory
by Rick Lunglhofer
Details the Implementation and use of a C Language Interpreter with a browser Interface running on an ESP32

Latest Articles

by Intel
Take Advantage of On-Chip Acceleration of Data Transformation in 4th Gen Intel® Xeon® Scalable Processors
by Jochen Haar
Class to manage the content of Comma Separated Value Files or to deal with Structured Tables in memory
by ADMGNS
A very simple method to resampling points from a digital image and drawing it as antique mosaics, dots (stippling) and Voronoi cells
by Rick Lunglhofer
Details the Implementation and use of a C Language Interpreter with a browser Interface running on an ESP32

All Articles

Sort by Title

Processing 

5 Jul 2012 by Mario Ghecea
This article describes the technique I used to ingest large text files to create an e-book publishing platform on the Android Market
20 Nov 2011 by Viktor Signaievskyi
Dear users of CodeProject,How to get approximated points for 1D Points having only several reference points?Splines like Bezier are not suitable here. Applying something like Bezier the dynamic range of the 1D signal changes and I need some approximation without such defect (I mean...
9 Dec 2012 by Jackie00100
As the title says! can I force a method/function to run on an other process without going too much into assemblies/decompiling etc.?I'm having a app that is in need of doing some very heavy memory work with some graphic objects using GDI+, (up to ½-1 GB) so I want to have this to run in a...
9 Dec 2012 by Sergey Alexandrovich Kryukov
There is no such thing as "force" to run something to "run on a single process". Processes are totally under your control. If you don't create a process, it is not created by anything by itself. And using GC is not recommended.Your "without going too much into assemblies and stuff like that"...
24 Sep 2013 by Richard MacCutchan
This is the fourth time you hve reposted this question; please stop. If you have further information to add then edit the original, or respond to people who have already given you some suggestions.
12 Jun 2016 by David A. Gray
What happens when you have more items in your list than you have items in your control string?
1 Dec 2017 by Perić Željko
You could try this : Problem solving - Wikipedia[^] Algorithm - Wikipedia[^] Software development process - Wikipedia[^] All the best, Željko Perić
16 Jul 2012 by bikekowal
Hi all,I have a following problem. I want to build a application processing images from a camera in real time. The problem is that I cannot get to the bitmap data correctly. The following piece of code is running without errors but the problem is that the images don't change. The code...
16 Jul 2012 by Sergey Alexandrovich Kryukov
As I can see, you manipulate the bitmap and then completely forget the result, replacing it with a brand new instance of a bitmap (a line of code with new Bitmap(&hellip)).Besides, the name "m_PicBoxes" suggests that you use the class System.Windows.Forms.PictureBox, which is not a very good...
26 Sep 2014 by mrinal bisht
I have an array of vaules in A [ ], i need to add gaussian noise to it .I am using this function for gaussian noise generation .double AWGN_generator(){ /* Generates additive white Gaussian Noise samples with zero mean and a standard deviation of 1. */ double temp1_d; double...
24 Sep 2015 by nanimam
Do anybody know about aforge.net filtergraytogray class from aforge.net 1.6.2..from where i can get this class ??i searchd in google..not found....Bec newer version aforge does not include these class file.Pls help ..realy needed
24 Sep 2015 by Richard MacCutchan
Go to http://aforge.net/[^] and ask on their forums.
2 Aug 2011 by jyoti87
Our project deals with searching for a video file and playing it from the given date and given time in minutes and seconds.The amount of audiovisual information available in digital format has grown exponentially in recent years. Gigabytes of new images, audio and video clips are generated...
2 Aug 2011 by TheyCallMeMrJames
You don't have a lot of options here.Much like YouTube pre-processes the video to allow for fast time-seeking, you're going to have to 'index' the frames of the video first.I can guarantee that the system compresses video, so each of your frame sizes is going to be different. That means...
28 Oct 2014 by Member 11068482
after 4 week i find my problem and i should setup my camera driver and update it for my laptop but when i debug my code it say successful but Many Camera View windows open and after that when i use 'T' for tracking it have troubleshoot occur any body know what is the problem??!!!!i debug it...
14 Sep 2014 by George Jonsson
You should go to the OpenCV official site for support. Welcome to opencv documentation![^]Here is an example from that site that looks like it shows what you want to do.Cascade Classifier[^]Quote:Use the CascadeClassifier class to detect objects in a video stream. Particularly, we will...
8 Jul 2016 by Member 12624805
Suppose that we are given the following code:int[] myArray = {4, 5, 6, 1, 2, 3, 21, 20};for (int i = 0; i
7 Jul 2016 by OriginalGriff
Run it through the debugger and it'll become clear.i varies with each pass through the loop: 0, 1, 2, 3, 4So the element you put the value into starts with teh first and moves on to teh second, and so on.The value changes as well, but it starts with:myArray[length -1 - 0]And then...
8 Jul 2016 by Patrice T
You should learn to use the debugger as soon as possible. Rather than guessing what your code is doing, It is time to see your code executing and ensuring that it does what you expect.The debugger allow you to follow the execution line by line, inspect variables and you will see that there...
28 Jul 2015 by Member 10527204
Hello i have added following code in my web application protected void Page_Load(object sender, EventArgs e) { System.Diagnostics.Process.Start("Notepad.exe"); } as an example i am using notepad.exe , actually i want any exe to open from webpage.this...
28 Jul 2015 by ZurdoDev
Web code runs on the server. So, the code you have will attempt to launch NotePad on the server. It works when you do it in development because your machine is the server. I think you need to rethink what you are trying to accomplish with web code.
28 Jul 2015 by Kornfeld Eliyahu Peter
You have to go back and learn about web applications...Web - by its nature - is a disconnected application, where the two parts of the application exists and active in an exclusive way...It means that when the server active the client not and when the client active the server not...The...
9 Jan 2011 by nomani
can u suggest me how to compare two audio files orhow can i get the time series values of audio filelike the values of samples of audio file(mp3 format)???how can i get them , using c# or any other languagemy email id is knomix@gmail.comwaiting for your kind reply thanks :doh:
9 Jan 2011 by Kasson
Hope This[^] will give an idea.
5 Dec 2013 by Tharaka MTR
How to automate PNG and JPG image optimization
13 Nov 2016 by Jack Vanlightly
In this article we'll look at common patterns in batch processing and how the Taskling libraries provide a simple and reliable way of using those patterns in your C# batch jobs.
18 Dec 2023 by Intel
Take Advantage of On-Chip Acceleration of Data Transformation in 4th Gen Intel® Xeon® Scalable Processors
14 Sep 2013 by Member 10274514
I cannot get me code count the vowels in the entry text box. What have I done wrong? string inputString; inputString = this.entryTextBox.Text.ToLower(); char[] vowels = new char[] {'a', 'e', 'i', 'o', 'u'}; ...
14 Sep 2013 by Sergey Alexandrovich Kryukov
Obviously, your bug is using inputString.Contains. It checks up is one string is a sub-string of another one, but your logic requires checking up is a single character is one of the vowels. Moreover, the calculation of the variable vow is completely pointless, and your call of Contains is just...
14 Sep 2013 by The_Inventor
string inputString; inputString = this.entryTextBox.Text.ToLower(); char[] vowels = {'a', 'e', 'i', 'o', 'u'}; string vow; int vowelCount = 0; int digitCount = 0; for int j = 0; j
30 Jan 2014 by Member 10562044
You can use this:..............................using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { ...
16 Sep 2015 by silvsten john
Hi,Now i am working on an image processing project with c# .net.i required to find slic super pixel segmentation ..Ftom github I got a slic superpixel segmentation project (in c#) using opencv vlfeat...How to add/refer this project to my c# project???pls advice
16 Sep 2015 by CPallini
There is no mention of C++ in your question body.Anyway, usually you might call C++ code packaged in a DLL via Platform Invoke[^].
8 Nov 2019 by Member 14646256
I am new to C# and working on a project. The project reads the multiple .csv files (in a folder) and parse them and show the results in the windows application. Although it processes the files very slow. So i had to ask can i use multithreading for reading files Or is there any other technique...
8 Nov 2019 by RickZeeland
I would recommend using Task.Factory, see example here: Whats the best way of asynchronous parsing a CSV file in c# - Stack Overflow[^]
8 Nov 2019 by Richard MacCutchan
Multithreading is not guaranteed to make a great difference, and will depend on what your code is doing. The first thing to look at is where the slow processing actually occurs. Is the delay due to the speed of getting the data off disk, or in processing it once it's in memory?
8 Nov 2019 by #realJSOP
File size, the number of files and what you're doing to the data are all primary factors. Only you can determine the sweet spot, or if you should even implement any kind of threading.
15 Sep 2013 by pi19404
Color constancy is a mechanism of detection of color independent of light source. The light source many introduce color casts in captured digital images To solve the color constancy problem a standard method is to estimate the color of the prevailing light
14 Apr 2011 by Xibal
I am using a Windows XP system,We developed a program (Foobar) that makes a call to CreateProcess and then exits resulting in an non-terminating orphan process (Orphan). The issue is that when we attempt to move, copy, delete, etc. Foobar or its folder, Windows displays a...
14 Apr 2011 by #realJSOP
It's because your "orphaned" process is still open, and hasn't released the filesystem resources that you're trying to access. What you need to do is change the scope of the process object so that when your app closes, the process in question can also be terminated.
22 Apr 2011 by Xibal
We've discovered the solution. The orphan process is inheriting and holding onto resources from its grandparent process, which prevents the grandparent process from running again. Our main application needs this grandparent process in order to function correctly so all it took was to set...
2 Nov 2011 by C_Johnson
A complete step by step guide to show newcomers to EMGUcv how to set up their project
31 May 2022 by Jochen Haar
Class to manage the content of Comma Separated Value Files or to deal with Structured Tables in memory
10 Apr 2010 by Pete O'Hanlon
So what, exactly, is your question? You have only specified part of your problem, and given no indication what problem you are having. Without putting more information, nobody will be able to help you.
22 Apr 2022 by ADMGNS
A very simple method to resampling points from a digital image and drawing it as antique mosaics, dots (stippling) and Voronoi cells
10 Sep 2012 by Kuthuparakkal
This would get you started:WPF 3D: Part 1 of n[^]
8 May 2012 by Mabchour 1989
Dear all,I have a signal that is composed of five different waves and I need to "filter" each wave and display it on its own, how can I do that(I'm not that good in electricity/signal processing x) )
8 May 2012 by Sergey Alexandrovich Kryukov
Basically, this is how it looks: if one wave a non-sinusoidal wave, it is already composed of several sinusoidal waves, most typically -- infinite number of those. If the signal is non-periodic, you have not a countable infinite number of components, but continuum of those. In brief, the idea is...
22 Jan 2011 by bosco_boom
I have a program for image segmentation in WinForms Application C#, and I have an image loaded in a pictureBox. I need to draw a small circle(or an ellipse, it does not matter) on that image (inside a region of interest, and allowing it to grow outwards until it reaches the desired...
22 Jan 2011 by JOAT-MON
You can get a Graphics reference to the image by using the Graphics.FromImage() function. Then I would use the function in the Graphics class called DrawEllipse[^]. It has an overload that allows you to pass a Pen (i.e. Pens.Red) and a Rectangle. The rectangle will define the location and the...
21 Jan 2011 by Henry Minute
The circle will be drawn wherever you tell it to. The way that you tell it is by the Location and Size properties of the Rectangle. Try changing the Location that you use. If it is currently at top left then that is 0, 0, try changing that to 10, 10 or something else (remember to keep the...
10 Aug 2010 by OriginalGriff
Don't cross post - either post in the C# forum, or the Q&A - posting in both just duplicates effort and annoys people.
12 Aug 2010 by Sandeep Mewara
Avoid cross-post[^]. Pick one forum and stick to it. It's considered rude if you post at multiple forums.
3 Jan 2015 by Richard J. Algarve
Emgu CV - Select ROI (Region of interest) with the mouse in images that do not have the same measurements. This tip was prepared using the framework Emgu CV and C # .NET language.
7 Mar 2012 by C_Johnson
An intermediate example of signal processing using EMGU Image Processing Libraries
16 Dec 2010 by Avi Farah
Allow for constructs within a string to be programmatically evaluated for a final string value
21 Feb 2012 by Yburmisha
Our instructor gives us a project defense on Turbo C using File Processing for the first time. He hadn't given us example yet on this.
21 Feb 2012 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
22 May 2015 by shreesoft
I want to extract blue color from image, I wrote code for it. I am using lockbits method in C#.24 bit image - BGR [0] = Blue[1] = Green[2] = RedHere is code - BitmapData bitmapdata = bitmap.LockBits ( new Rectangle( ...
22 May 2015 by Sergey Alexandrovich Kryukov
It simply means that one of the images happens to have different pixel format. Different formats makes different memory layouts. You have to read the file and then read the property...
1 Oct 2013 by Rui Jorge Carvalho
Fast and simple Bitmap processor...
14 Sep 2011 by merkousha
hi,i worked on a project that in a step we must find a first character's position in a first line of a texts that we store it in a emf file .also we have a another problem that , some times our text line may have a Equation and this Equation may have a anormal height . this means that , the...
18 Sep 2011 by Sergey Alexandrovich Kryukov
This is quite possible but not quite trivial. EMF file is not exactly a container of vector graphical primitive. It is rather a sequence of events and can be "played", much like a video, to get displayed. You can find the EMF's elements by using the method...
14 Aug 2015 by i00
It seems you are trying to get the top left pixel of text?If you just have text and everything else is transparent you can just load the Metafile and call .GetBounds(Imaging.MetafileFrameUnit.Pixel) on it!Kris
17 Nov 2016 by OriginalGriff
It doesn't quite work like that.We do not do your work for you.If you want someone to write your code, you have to pay - I suggest you go to Freelancer.com and ask there.But be aware: you get what you pay for. Pay peanuts, get monkeys.The idea of "development" is as the word...
17 Nov 2016 by Richard MacCutchan
See flann in opencv - Google Search[^].
23 Apr 2013 by Sabri M
is there anyone can tell me how can I write to the same file opened by parent and child?example:int main(){ pid_t pid ; FILE *inp = fopen("test.log","w"); pid = fork(); if(pid == 0) writeFile(inp); else writeFile(inp);}
23 Apr 2013 by CPallini
In priciple you can, but that's 'the recipe to disaster' according to Multiple processes write to the same file (C)[^].
6 Mar 2016 by Jakub Szymanowski
The article presents idea and implementation of Fourier Transform (DFT and FFT algorithms) in Digital Signal Processing.
10 Jan 2017 by Jakub Szymanowski
The article presents idea and implementation of fundamental algorithms in image processing.
25 Jan 2012 by Master Div
Hello guys , i'm a newbie at programming still at the university. I need help for my project which consist of calculating the speed of vehicles from a video using openCV and C++. Any help would be greatly appreciated and so sample codes. The main part is calculating the average speed , added...
25 Jan 2012 by Tarakeshwar Reddy
It is your project and you would have to do it. If time is not enough, go to your prof and ask an extension of time. If you do not know the technology, I would suggest taking something simpler which you understand and implement. Taking a complex project will not help you get good grades. A...
26 Feb 2012 by BupeChombaDerrick
Trying checking out this articlehttp://www.eecs.umich.edu/~silvio/teaching/EECS598/papers/leibe-dynamic3dscene-cvpr07.pdf[^]But be specific, what you are trying to do is not even a well understood problem, so you must do most of the research yourself.
10 Nov 2012 by Ruzzar
This is a BIG project. And you have just posted it all here. I would have broken it down into smaller pieces. Like - how to install OpenCV - background subtraction - foerground segmentation - vehicle detectionPossibly, wold have enabled guys outhere to help. Just suggesting.
23 Sep 2018 by Member 13994924
I’m using Processing 3 to code and I'm pretty new but know some basics, so I wanted to make the game Snake. I’ve been able to make the square move in a grid and eat food then spawn new food, but adding a new square is giving me trouble. In the Snake class and void update() I’m trying to create a...
22 May 2018 by Member 13839779
Hey there! I'm a graphic designer and I know some CSS and HTML but I had an idea to complement a project and don't know how to make it happen! I don't mind learning a new language or learning how to make it but don't know what direction to go and don't even know if it's possible to do what I...
22 May 2018 by OriginalGriff
Yes, it's possible - but it's not a job for a beginner in any way. To be honest, it's not a job I'd want to "jump into" without spending a fair amount of time doing research into how to detect the pitch of a playing tune in Javascript: a quick google says it's likely to be possible, but I...
7 Jun 2018 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action. Try it yourself, you may find it is...
7 May 2021 by Yumni
Hi I'm currently working on STM32 and I want to make my speaker work depending on it's PWM generation. I made the clock/pinout configuration and some parts of codes as written below, but I don't get why this code doesn't works. It doesn't make...
8 Oct 2017 by Member 13452762
I am learning processing and there is an assignment question that tells me to use while loop to print out random numbers between -100 and 100, then print out the average of those numbers. I know how to do the first part but not the second... What I have tried: I didn't know any alternatives to...
8 Oct 2017 by OriginalGriff
You can create a loop, and inside it you have a variable which holds the current number. All you need is a variable which holds a running total (declare it outside the loop, and initialize it to zero), to add the current number to it each time round the loop, and a count of how many numbers you...
3 Jun 2011 by jiji2663
helloi want to set a thread or task to one core's of cpu and manage it in c#?of corse whitout Process.GetCurrentProcess().ProcessorAffinity please F1F1F1F1F1F1F1F1 !!!!!!!!!!!thnx
3 Jun 2011 by Dave Kreskowiak
Without setting processor affinity, you can't.It's also a bad idea unless you have VERY SPECIFIC reasons for doing so and know the pitsfalls.One such pitfall is that you limit your code to running on single core even if the core is also busy doing other things and other cores are idle. ...
3 Jun 2011 by Sergey Alexandrovich Kryukov
Except for process affinity, there is also a thread affinity.Please see my past answer: How to program multicore[^].Again, in agreement with Dave, don't interfere in thread/process affinity unless you know exactly what are you doing!—SA
29 Mar 2014 by Getrude Chando
I have to differentiate plastic water bottles of different sizes i.e. water bottles of different sizes will pass in front of a camera which will capture their image and brought it to PC for processing and I should be able to count a certain sized bottle and ignore others I have to make the...
29 Mar 2014 by Richard MacCutchan
And your question is? Although judging by what you have posted it is likely to be something along the lines of "I don't know where to start". Assuming I am correct, you need to use Google to find articles on image comparison, study them and then start to design your application.
29 Mar 2014 by CHill60
Further to Richard MacCutchan's post, someone else was asking a couple of days ago about Image Comparison. There may be more answers posted How To Find The Simillar Image From Couple Of Images[^]
7 Jun 2018 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action. Try it yourself, you may find it is...
4 Oct 2017 by Member 13445625
Thanks for the reply, I solved it. I added counter and condition with it.
13 Dec 2021 by Sabah Elhadid
Hi Everyone,� I'm really new to processing and need some help. I hope my description will be explanatory enough.
 I have a set of 2000 jpgs apx. and what I need to do is to create the illusion of the 2k as if they’re moving past the viewers face...
13 Dec 2021 by Richard MacCutchan
To move images in a Window you just need to use a timer and every time it interrupts you should redraw the image at a new position to give the effect of movement. To produce the effects of zooming an image you need to use controls that allow you...
31 Aug 2018 by Member 13968996
I'm using Processing 3.0.2, and I'm trying to run a function I defined in a class from an ArrayList. Processing says "The function dis() does not exist." when it obviously does. What I have tried: I have an ArrayList called "cs," and it contains "Circle" objects. "Circle" is a class that I...
31 Aug 2018 by Slacker007
I think you need to make a cast here for cs in your function discs(). This link might help you or point you in the right direction. java - Cannot Find Method of an Object in ArrayList - Stack Overflow[^]
17 Mar 2014 by LyEliza
How do i subtract two images in C#?? i.e. i want the resultant image to contain only the differences. i am a student and new to C#. Pls help me out..i tried converting to color matrix and subtracting it but it didn't work out. MATLAB has direct option for subtracting images(imsubtract()). i am...
17 Mar 2014 by Andreas Gieriet
Have a look at How to subtract one bitmap from another in C#/.NET?[^].CheersAndi
15 Sep 2015 by silvsten john
Hi guysss..I am working with segmentation now...i need to convert l a b space color values to l a b vector...how its possible..??what is the difference bwn lab values and lab vector??how tp represent lab space vector??
15 Sep 2015 by Sergey Alexandrovich Kryukov
This is a plain wrong question, "how differ"? Just learn how this color space works: https://en.wikipedia.org/wiki/Lab_color_space[^].Most questions about "difference" are inherently invalid. If you didn't get it yet, try to tell use the "difference" between apple and Apple. :-)—SA
15 Sep 2015 by User 11060979
First try to understand what CIELAB means. Than you will find that your "so called" Lab* Values are the components of a Lab* Vector in the Lab* ColorspaceIn very short:Lab* is a (three dimensinal) colour space. The "*" Comes from history to make a clear difference between the CIE-LAB space...
26 Jul 2011 by PrafullaVedante
Hi,This question might be very basic. But i want to know How many processors does Windows 7 support.Any link to Microsoft site will be appreciated.Regards,Prafulla Vedante