Articles on Trending Technologies

Technical articles with clear explanations and examples

Explain OpenCV Distance Transformation using java Example

Maruthi Krishna
Maruthi Krishna
Updated on 13-Apr-2020 397 Views

The distance transform, in general, is a derived representation of a digital image. In this operation, the gray level intensities of the points inside the foreground regions are changed to distance their respective distances from the closest 0 value (boundary).The distanceTransform() method of the Imgproc class applies Distance Transform on the given image, this method accepts −Two Mat objects representing the source and destination images.An integer variable representing the type of the distance transformation to be applied.An integer value representing the mask size to be used.Exampleimport java.awt.Image; import java.awt.image.BufferedImage; import java.io.IOException; import javafx.application.Application; import javafx.embed.swing.SwingFXUtils; import javafx.scene.Group; import javafx.scene.Scene; import ...

Read More

Explain OpenCV Laplacian Transformation using java Example

Maruthi Krishna
Maruthi Krishna
Updated on 13-Apr-2020 402 Views

The Laplacian transform on an image highlights the regions where there is a rapid intensity change. Therefore, it is used to detect edges.The Laplacian() method of the Imgproc class applies Laplacian Transform on the given image, this method accepts −Two Mat objects representing the source and destination images.Four integer variables representing the depth, size, scale and, delta values of the transform.An integer value representing the border.Exampleimport java.awt.Image; import java.awt.image.BufferedImage; import java.io.IOException; import javafx.application.Application; import javafx.embed.swing.SwingFXUtils; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.image.ImageView; import javafx.scene.image.WritableImage; import javafx.stage.Stage; import org.opencv.core.Core; import org.opencv.core.CvType; import org.opencv.core.Mat; import org.opencv.highgui.HighGui; import org.opencv.imgcodecs.Imgcodecs; import org.opencv.imgproc.Imgproc; public class LaplacianTransform ...

Read More

Java implementation of OpenCV Hough Circle Transform.

Maruthi Krishna
Maruthi Krishna
Updated on 13-Apr-2020 854 Views

You can detect circles in a given image using the Hough circle transform. You can apply Hough Circle transform using the HoughCircles() method, this method accept the following parameters −A Mat object representing the input image.A Mat object to store the output vectors of the found circles.An integers variables representing the detection method.Two double variables representing an inverse ratio of the accumulator resolution to the image resolution and minimum distance between the centers of the detected circles.Exampleimport org.opencv.core.Core; import org.opencv.core.Mat; import org.opencv.core.Point; import org.opencv.core.Scalar; import org.opencv.highgui.HighGui; import org.opencv.imgcodecs.Imgcodecs; import org.opencv.imgproc.Imgproc; import java.awt.Image; import java.awt.image.BufferedImage; import java.io.IOException; import javafx.application.Application; import javafx.embed.swing.SwingFXUtils; ...

Read More

Explain Top Hat and Black hat morphological operations in Java.

Maruthi Krishna
Maruthi Krishna
Updated on 13-Apr-2020 857 Views

Morphological operations are the set of operations that process images according to the given shapes.Erosion − Erosion is a morphological operation during which pixels are removed from the image boundaries.Dilation − During is a morphological operation during which pixels are added to the image boundaries.Where the total number of pixels added/removed depends on the dimensions of the structuring element used.Morphological Opening − During this operation erosion is applied on the given input and on the result dilation is applied. This is used to remove small objects from the foreground of an image.Morphological Closing − During this operation dilation is applied ...

Read More

Is there any alternative for OpenCV imshow() method in Java?

Maruthi Krishna
Maruthi Krishna
Updated on 13-Apr-2020 1K+ Views

The HighGui class of the org.opencv.highgui package allows you to create and manipulate windows and display them. You can display an image in a window using the imshow() method of this class. This method accepts two parameters−A string variable representing the name of the window.A Mat object representing the contents of an image.It is recommended to invoke the waitKey() method after imshow().ExampleThe following example reads an image, converts it into a grayscale image, detects the edges in it and displays all the three images (original, gray-scale and, edges) in windows using HighGui.import org.opencv.core.Core; import org.opencv.core.Mat; import org.opencv.highgui.HighGui; import org.opencv.imgcodecs.Imgcodecs; import ...

Read More

What is morphological gradient in image processing?

Maruthi Krishna
Maruthi Krishna
Updated on 13-Apr-2020 2K+ Views

Erosion and dilation are the two basic morphological operations. As the name implies, morphological operations are the set of operations that process images according to their shapes.During dilation operation additional pixels are added to an image boundary and, during erosion operation, additional pixels are removed from image boundaries, The total number of pixels added during the dilation process depends on the dimensions of the structuring element used.Morphological Gradient is the operation that is equal to the difference between dilation and erosion of an image. Each pixel value in the resulting image indicates the contrast intensity in the nearby pixels. This ...

Read More

Explain Morphological Opening in OpenCV using Java.

Maruthi Krishna
Maruthi Krishna
Updated on 13-Apr-2020 805 Views

Morphological operations are the set of operations that process images according to the given shapes. Erosion and dilation are the two basic morphological operations.During dilation, additional pixels are added to the image boundaries.During erosion, additional pixels are removed from the image boundaries.The total number of pixels added/removed depends on the dimensions of the structuring element used. You can perform erosion and dilation operations using the erode() and dilate() methods respectively.In addition to dilation, OpenCV provides more morphological transformations such as Opening, Closing, Morphological Gradient, Top Hat, Black Hat.Morphological openingThis is an operation that is equivalent to applying erosion on an ...

Read More

How to modify the default editor of JShell in Java 9?

raja
raja
Updated on 13-Apr-2020 546 Views

JShell implements REPL (Read-Evaluate-Print Loop) that reads the code from the command-line, evaluates the given snippet, and prints the result back to us.In JShell, it's possible to edit code from the default JShell editor by using JShell Editor Pad. We can also use the "/set" command to modify the default editor in order to define another one. When launching the "/edit" command, this editor can be used. In order to perform this operation, we can simply launch the "/set editor [editor]" command.Suppose we want to set the Notepad application as the default program for editing code, then just type the ...

Read More

Satellite Tracking

Ajay yadav
Ajay yadav
Updated on 13-Apr-2020 731 Views

This article showcases the real − time satellite tracking and orbit prediction program for both the Linux and desktop using gpredict software. We can run in real-time, simulated real-time (fast forward and backward), and manual time control with this tool.Core features of GpredictTracking of a large number of satellites moving across the globe.Display the tracking data in lists, maps, polar plots and any combination of these.We can predict upcoming passes with the base stationDetailed information both the real-time and non-real time modesDoppler tuning of radios via Hamlib rigctldAntenna rotator control via Hamlib rotctldPrerequisiteThe satellite tracking software gpredict requires the following ...

Read More

How can we modify an existing module in Java 9?

raja
raja
Updated on 10-Apr-2020 623 Views

The module is a named, self-describing collection of code and data. The code has been organized as a set of packages containing types like Java classes and interfaces. The data includes resources and other kinds of static information. We need to declare a module then add module-info.java at the root of the source code.Below is the template of the "module-info.java" file.module {    requires ;    requires ;    exports ;    exports ;    exports to }We can use certain command-line options that help us to modify existing modules and add dependencies to them, export ...

Read More
Showing 54351–54360 of 61,297 articles
Advertisements