Found 33676 Articles for Programming

XSL Processor in Java

Way2Class
Updated on 18-Jul-2023 15:22:43

702 Views

The XSLT (eXtensible Stylesheet Language Transformations) Processor is a piece of software that processes XML documents and applies transformation rules to create new XML documents or other output formats like HTML, plain text, or PDF. With the use of templates, element selection and manipulation, and operations like sorting and filtering, developers can build rules for converting XML documents into various formats using the powerful language known as XSLT. An XSL processor that can be used to implement XSLT transformations is built into the popular programming language Java for processing XML documents. Developers can read, parse, and process XML documents, apply ... Read More

Combine two images in MATLAB

Manish Kumar Saini
Updated on 18-Jul-2023 11:07:43

986 Views

MATLAB allows us to combine two images through various methods like image fusion, image join, image concatenate, image overlay, image blending, etc. In this tutorial, we will explore all these techniques of combining two images. Combine Two Image in MATLAB using `imtile()` Function In MATLAB, we can combine two images by using the `imtile()` function. This function allows us to arrange our multiple images in a tiled layout. Syntax To combine two images, the `imtile` function takes the following syntax: img = imtile({img1, img2}, 'GridSize', [1, 2]); Now, let us see the implementation of the ... Read More

Merging PDFs using Java

Way2Class
Updated on 18-Jul-2023 14:20:12

3K+ Views

PDFMergerUtility class is used for merging multiple PDF documents into a single PDF document. PDFMergerUtility class will take a number of PDF files and merge them, and save the result as a new document. To merge PDFs using java will require the installation of apache library. There may be different approches to merge PDF files using java. Definition: Merging PDFs using java Example Input − PDF1 = Alice.pdf, PDF2 = Bob.pdf Output − newMerged.pdf // merged pdf of pdf1 and pdf2 Program code// Merging two pdf documents here import org.apache.pdfbox.multipdf.PDFMergerUtility; import org.apache.pdfbox.pdmodel.PDDocument; import java.io.File; ... Read More

Asymmetric encryption cryptography in Java

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

1K+ 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

122 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

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

Calculate Complex Conjugate Transpose in MATLAB

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

322 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

2K+ 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

229 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

597 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

Advertisements