Posts

‘Sed’ Command In Linux: Useful Applications Explained

Image
Have you ever needed to replace some text in a file really quickly? Then you have to open up your text editor, find the line, and then type out your replacement. What if you have to do that many times? What if it isn’t also exactly the same thing and you have to run multiple searches and replace each occurrence? It gets tedious very quickly, but there’s a better way of doing it with a tool called sed. We’ve written about POSIX and went over some of the interfaces and utilities a system must provide in order to be POSIX compliant. The command line tool sed is one of those utilities that provide a feature-rich way to filter, find, substitute, and rearrange data in texts files. It is an extremely powerful tool that is very easy to get started with, but very difficult to learn through and through due to its seemingly endless number of features. First, we should note that the GNU implementation of sed, while POSIX compliant, goes above and beyond the specification to provide exte...

32-Bit vs 64-Bit Operating System

Image
This has really been confusing to some people choosing between 32-bit and 64-bit systems. Head over to any operating system’s website, you will be given a choice to download either versions of the same operating system. So what is the difference? Why do we have two different versions of the same OS? Let us solve this mystery here, once and for all. So currently you might get to see either a 32-bit or 64-bit operating system. There is absolutely no difference in both of these systems, they are 100% alike with all the same features and applications. Now you might be wondering which one to choose. Well, the answer is pretty simple. Depens On Processor The type of operating system you install depends on the type of processor you have. Currently, there are 2 major types of processors available, 32-bit and 64-bit processors. A 64-bit processor can run both 32 and 64-bit operating systems, however, a 32-bit processor can only run a 32-bit operating systems.   Differen...

Analyze Color Features on Image Processing.

Image
There are various ways to recognize an image. One of the techniques that can be used in image processing are three basic features in the image, namely color, shape, and texture. Different imagery will have different color, shape, and texture features. In this experiment we will discuss one by one feature and how the three features can recognize the image. Color Features Color can distinguish objects in the image. Technically, color is a particular spectrum contained in a perfect light (white). Color is formed from a collection of waves with wavelengths of some basic elements of color. The way the presentation of a mixture of basic elements of color to produce a color is called the color space or color space. There are several kinds of color space in image processing, ie RGB, RG, Normalized RGB, HSV, CIE, CMYK, YCrb, HSL, and TSL. From the several kinds of color space already mentioned, the most often we hear is RGB (Red Green Blue). Based on the RGB value, we can know the values ...

Filter for Image Processing

Image
This time we will try different types of filters for image processing. There are three filter principles in image processing, namely: Low Pass Filter (LPF) is used to remove a different point with its neighboring points, or in other words the noise reduction process. LPF will take data at low frequencies and discard data at high frequencies. High Pass Filter (HPF) is used to maintain a different point with its neighboring points, or in other words edge detection process. HPF will take data at high frequencies and dump data at low frequencies. Band Pass Filter (BPF) is used to maintain a point close to the neighboring points, and a point different from the neighboring points, in other words the sharperness process. BPF will maintain low and high frequencies that are not too low and high. Low Pass Filter for noise reduction process Based on the above three principles, LPF is used to reduce noise on the image. Noise itself has three types, namely gaussian noise, speckle noise, ...