Found 34469 Articles for Programming

Asymmetric encryption cryptography in Java

Way2Class
Updated on 18-Jul-2023 14:03:29

773 Views

Cryptography is the study and practice of different techniques to secure communication from third party. It is used for cyber security. We try to develop approaches and practices for protecting sensitive data. The sole objective of cryptography is to secure data from the attacker. Asymmetric Encryption is also referred as public/private key. Private key as goes as its name, it will be private while the public key can be distributed. Encryption is a mathematical correlation between two keys, one for encryption and the other for decryption. For example, if there are two keys “A1” and “A2”, then if key “A1” ... Read More

Change Background of Color Image into Grayscale in MATLAB

Manish Kumar Saini
Updated on 18-Jul-2023 11:23:24

68 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

Check whether two Strings are Anagram of each other using HashMap in Java

Way2Class
Updated on 18-Jul-2023 13:48:25

874 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

Calculate Complex Conjugate Transpose in MATLAB

Manish Kumar Saini
Updated on 18-Jul-2023 10:58:11

172 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

Components of Apache Spark

Way2Class
Updated on 18-Jul-2023 13:28:14

701 Views

Apache Spark is a complex computing system. It provides high-level APIs in programming languages namely Python, Scala, and Java. It is easy to write parallel jobs in Spark. It offers general and quicker processing of data. It is written in Scala and it is faster than others. It is used to process a large number of datasets. It is now the most prominently engaged Apache Project. Its key feature is in-memory complex computing that extends the speed of the data process. It possesses some main features that are Multiple Language Support, Platform-Independent, High Speed, Modern Analytics, and General Purpose. Now, ... Read More

Balance Contrast Enhancement Technique in MATLAB

Manish Kumar Saini
Updated on 18-Jul-2023 11:00:20

111 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

Julia VS Java

Way2Class
Updated on 18-Jul-2023 13:21:59

312 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

Automatically Plot Different Color Lines in MATLAB

Manish Kumar Saini
Updated on 18-Jul-2023 11:11:02

395 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

JRE Full Form

Way2Class
Updated on 18-Jul-2023 13:14:48

329 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

Automatically Maximize an Image in MATLAB

Manish Kumar Saini
Updated on 18-Jul-2023 10:14:12

102 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

Advertisements