Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Programming Articles - Page 237 of 2896
159 Views
We can obtain grayscale color by setting RGB values to 128. This means all color channels will have the same intensity values. The following MATLAB program illustrate the code for changing the background of a color image into grayscale. Example %MATLAB program to demonstrate changing color background into grayscale % Read the input colored image img1 = imread('https://www.tutorialspoint.com/assets/questions/media/14304-1687425236.jpg'); % Display the input color image subplot(1, 2, 1); imshow(img1); title('Original Image'); % Create a binary mask of the background BGMask = img1(:, :, 1) == img1(1, 1, 1) & ... ... Read More
2K+ Views
Anagram Strings are those strings that have the same characters in each of the strings only the order in which they are arranged changes. In other words, a string is an anagram string if it forms a meaningful word after rearranging the characters of the other string. Some examples of anagram strings are “cat and act”, “care and race”. Both of them have the same characters and their frequencies. In this article, we will be discussing the approach to check whether the two strings are anagrams of each other or not using the HashMaps in Java. Problem Statement ... Read More
420 Views
The Complex Conjugate Transpose is a mathematical operation performed on a matrix of complex numbers. It is also known as Hermitian Transpose of Matrix. In this operation, first the transpose of the matrix is taken and after that the conjugate of each element of the matrix. For example, if a there is a complex matrix M, then the complex conjugate transpose of this matrix will be M* that is obtained by taking transpose of M and then replacing each element with its complex conjugate. The complex conjugate of a complex number is simply determined by changing the sign of ... Read More
295 Views
In digital image processing, the contrast enhancement is a crucial technique used to improve visual quality of an image. The contrast enhancement technique adjusts the intensities of pixels to increase the range of brightness levels and highlights the differences between bright and dark regions of the image. MATLAB provides various contrast enhancement techniques, but in this article, we will confine our focus to understand the balance contrast enhancement technique, and will see its implementation in MATLAB programming. What is Balance Contrast Enhancement? In MATLAB, the balance contrast enhancement technique is a modern method to improve the contrast ratio ... Read More
690 Views
Julia and Java Julia is a dynamic programming language whereas Java is an object-oriented programming language. Julia contains user-friendly syntax and Java is a purpose programming language. Both Julia and Java are programming languages used to create different types of applications. Both offer different types of features to make coding easy. Julia enables work for parallel and distributed computing. Java does not run to improper method addresses. Java allows the collection of garbage. Julia defeats Java in syntax, speed and applications. Therefore, we will cover the main difference between these two extensively used programming languages in this article. What ... Read More
1K+ Views
The different color lines in a plot allows us to plot and distinguish multiple data sets on a same plot area. MATLAB provides various built-in functions to assign different colors to different plot lines automatically. To automatically control the color of plot lines, we can use the following two MATLAB functions: Automatically Plot Different Color Lines using Hold Option In MATLAB programming, we can use the “hold” option to automatically plot different color lines. Syntax hold on; The following MATLAB program explain the use of “hold” function to plot lines of different color. Example % ... Read More
589 Views
JRE stands for Java Runtime Environment. It is mainly a part of the Java Development Kit (JDK). It is free of cost so we can easily find it on any software to use in our program. It consists of a Java class library, specific tools and many more important tools. JRE can be implemented on any operating system and it works as an outer layer of the operating system. It also consists of Integration Libraries and base libraries such as Java Database Connectivity (JDBC), Java Naming and Directory Interface (JNDI), Java Management Extension (JMX), Java Native Interface (JNI), Java for ... Read More
245 Views
MATLAB programming allows us to automatically maximize an image for better visibility. For this, we can use the “figure” function with some arguments which described in the following syntax. Syntax figure('units', 'normalized', 'outerposition', [0 0 1 1]); The “figure” command with all these parameters automatically maximizes an image. The following MATLAB program demonstrates the implementation of a code to automatically maximize an image. MATLAB Program Example % MATLAB program for automatically maximize an image % Read the input image img = imread('https://www.tutorialspoint.com/assets/questions/media/ 14304-1687425236.jpg'); % Replace 'your_image.jpg' with the path to your image % Display the original image in ... Read More
2K+ Views
Mockito is built for testing the unit, whereas Wiremock is built specifically for the integration testing. Mockito aids itself as “a mocking framework that tastes really great” whereas wiremock stimulates itself as “a simulator for HTTP-based APIs”. Both wiremock and mockito are the technologies used for testing that is widely used for unit and integration testing in natural world applications. Developers have to understand these two important terms and how they differ from each other to use them in an effective way. Therefore, we will cover the main difference between these two extensively used tools in this article. What ... Read More
177 Views
In digital image processing, the auto cropping based labeling the connected components is a cropping technique in which different regions in an image are determined by using labeled connected component. After that the image is automatically cropped by extracting the surrounding area of each connecting component. The main advantage of the auto-cropping based on labeling the connected components is that it allows to isolate and extract individual regions of interest within an image. Algorithm The step-by-step process to execute the auto-cropping based on labeling the connected components is given below: Step 1 - Process the image if necessary. ... Read More