The FlowLayoutPanel shares many of an ordinary panel control. They ultimately serve the same purpose, which is to organize children controls. In other words, is a container control that provides dynamically layout for the child controls. However, the stock version of the toolbox has some major limitations in terms of performance. For that reason the following minor modifications can improve your...
C# NuGet package with useful extension methods
In this article, I would like to mention benefits of using “Extension Methods” and provide a Nuget Package containing some of them. This feature started to be available in C # 3.0 compilers and continued in further versions (C# 4.0); it is very important for all developers especially if you would like to use the dynamism of the C# enhancements to take place in your class design. How to Create a...
Custom C# WPF Window for seemless results in Windows 7/10
Sometimes as developers we have to face the windows versioning problem. Fortunately there are only very few cases where the problem is in the functionality part of our application however this does not apply to the GUI. As you may known already, there is a huge difference in the way that the different versions of windows handle the Graphics. For that reason there are some workarounds you may find...
How to make a single file application in WPF C# – Merging DLLs
Sometimes there is a necessity to deliver your applications in a simple and fast way. However, creating a whole installer project for just a few assemblies is not the optimal solution, and packaging up a zip file must be accompanied by “Unzip this into a folder in your programs directory and create a shortcut…” which brings us back to the whole installer business we started with. Having...
Coherence estimation of EEG signals using moving window methodology
The coordination of EEG rhythms between brain areas can be detected by using Coherence analysis. Is a method developed on the base of classic coherence analysis and signals joint time-frequency representations in recent years. It was used to extract transient characteristics of interactions among brain areas. Describes the temporal, spatial and frequency relationships of brain activities. In this...
Image processing – Prewitt filter in C
Edge detection is the process of identify the presence and location of edges by sharp discontinuities of image. Edge detection plays an important role in image processing and helps in solving many complex problems. One useful and easy to implement algorithm is the Prewitt filter. As compared to Sobel, the Prewitt masks are simpler to implement but are very sensitive to noise. Mathematically, the...
How to extract brain wave bands: Gamma, Beta, Alpha, Theta, Delta
All human beings display five different types of electrical patterns or brain waves over the cortex in order of highest frequency to lowest are as follows: Gamma, Beta, Alpha, Theta, and Delta. Each brain wave has a purpose and helps serve us in optimal mental functioning. If one of the five types of brain waves are either overproduced or under-produced in our brain, it can cause problems [1]...
A simple generic C Stack for static or dynamic memory usage
Following the previous post about Queues, In this post i publish a simple modular stack written in C which can be used either by assigning a static space for the elements of a dynamic one (malloc etc). In computer science, a stack is an abstract data type that serves as a collection of elements, with two principal operations: push, which adds an element to the collection, and pop, which removes...
Cortex M atomic operations – Critical section
In concurrent programming, concurrent accesses to shared resources can lead to unexpected or erroneous behavior, so parts of the program where the shared resource is accessed are protected. This protected section is the critical section or critical region. It cannot be executed by more than one process. Typically, the critical section accesses a shared resource, such as a data structure, a...
A simple generic C Queue for static or dynamic memory usage
In this post i publish a simple modular queue written in C which can be used either by assigning a static space for the elements of a dynamic one (malloc etc). Queue is a particular kind of abstract data type or collection in which the entities in the collection are kept in order. The only requirement is that the memory space which will hold the queue items have to be allocated in prior. Below is...