Maruthi Krishna has Published 951 Articles

OpenCV Hough Line Transform implementation using Java.

Maruthi Krishna

Maruthi Krishna

Updated on 13-Apr-2020 10:49:57

630 Views

You can detect straight lines in a given image using the Hough line transform. There are two kinds of Hough line transforms available in OpenCV namely, Standard Hough line transform and, Probabilistic Hough Line Transform.You can apply the Standard Hough line transform using the HoughLines() method of the Imgproc class. ... Read More

Explain Top Hat and Black hat morphological operations in Java.

Maruthi Krishna

Maruthi Krishna

Updated on 13-Apr-2020 10:43:48

652 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 ... Read More

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

Maruthi Krishna

Maruthi Krishna

Updated on 13-Apr-2020 10:40:10

740 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 ... Read More

What is morphological gradient in image processing?

Maruthi Krishna

Maruthi Krishna

Updated on 13-Apr-2020 10:37:50

1K+ 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 ... Read More

Explain morphological Closing in OpenCV using Java.

Maruthi Krishna

Maruthi Krishna

Updated on 13-Apr-2020 09:37:53

347 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 ... Read More

Explain Morphological Opening in OpenCV using Java.

Maruthi Krishna

Maruthi Krishna

Updated on 13-Apr-2020 09:34:36

484 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 ... Read More

Java example demonstrating canny edge detection in OpenCV.

Maruthi Krishna

Maruthi Krishna

Updated on 13-Apr-2020 09:28:20

2K+ Views

The canny edge detector is known as optimal detector since it detects only the existing edges, gives only one response per page and minimizes the distance between the edge pixels and detected pixels.The Canny() method of the Imgproc class applies the canny edge detection algorithm on the given image. this ... Read More

How to add text to an image using Java OpenCV library?

Maruthi Krishna

Maruthi Krishna

Updated on 13-Apr-2020 09:22:27

965 Views

You can add text to an image using the putText() method of the org.opencv.imgproc.Imgproc class. This method renders the specified text in the given image. It accepts −An empty mat object to store the source image.A string object to specify the desired text.A Point object specifying the position of the ... Read More

How to fit ellipses around possible objects in an image using OpenCV Java?

Maruthi Krishna

Maruthi Krishna

Updated on 13-Apr-2020 09:20:23

202 Views

You can fit an ellipse over a shape using the fitEllipse() method of the org.opencv.imgproc.Imgproc class. This method accepts an object of MatOfPoint2f class, calculates the ellipse that would fit the given set of points and returns a RotatedRect object.Using this you can draw ellipses around the possible objects in an ... Read More

How to draw Image Contours using Java OpenCV library?

Maruthi Krishna

Maruthi Krishna

Updated on 10-Apr-2020 09:15:05

1K+ Views

Contours is nothing but the line joining all the points along the boundary of a particular shape. Using this you can −Find the shape of an object.Calculate the area of an object.Detect an object.Recognize an object.You can find the contours of various shapes, objects in an image using the findContours() ... Read More

Advertisements