Maruthi Krishna has Published 951 Articles

How to implement Bilateral blur in OpenCV using Java?

Maruthi Krishna

Maruthi Krishna

Updated on 09-Apr-2020 08:42:11

263 Views

You can blur an image by filtering it using a low-pass filter, this removes high frequency content (noise, edges) from an image. Bilateral Filtering is one of the blurring techniques provided by OpenCV, it −removes noise efficientlykeeps the edges sharpComparatively slowYou can apply the bilateral filter on an image using ... Read More

How to implement Gaussian blur in OpenCV using Java?

Maruthi Krishna

Maruthi Krishna

Updated on 09-Apr-2020 08:38:49

1K+ Views

You can blur an image by filtering it using a low-pass filter, this removes high frequency content (noise, edges) from an image.Gaussian Blurring is one of the blurring techniques provided by OpenCV, it is highly efficient in removing the noise of an image. This replaces the central element with the ... Read More

How to implement blur (averaging) in OpenCV using Java?

Maruthi Krishna

Maruthi Krishna

Updated on 09-Apr-2020 08:35:45

205 Views

You can blur an image by filtering it using a low-pass filter, this removes high frequency content (noise, edges) from an image.Averaging is one of the blurring techniques provided by OpenCV, this replaces the central element with the average of all the pixels in the kernel areaYou can filter/blur an ... Read More

How to draw a circle in OpenCV using Java?

Maruthi Krishna

Maruthi Krishna

Updated on 09-Apr-2020 08:32:06

251 Views

The org.opencv.imgproc package of Java OpenCV library contains a class named Imgproc.To draw a circle you need to invoke the circle() method of this class. This method accepts the following parameters −A Mat object representing the image on which the circle is to be drawn.A Point object representing the center ... Read More

How to draw a rectangle in OpenCV using Java?

Maruthi Krishna

Maruthi Krishna

Updated on 09-Apr-2020 08:29:39

954 Views

The org.opencv.imgproc package of Java OpenCV library contains a class named Imgproc. To draw a rectangle you need to invoke the rectangle() method of this class. This method accepts the following parameters −A Mat object representing the image on which the rectangle is to be drawn.Two Point objects representing the ... Read More

How to draw an ellipse in OpenCV using Java?

Maruthi Krishna

Maruthi Krishna

Updated on 09-Apr-2020 08:27:05

259 Views

The org.opencv.imgproc package of Java OpenCV library contains a class named Imgproc. To draw an ellipse you need to invoke the ellipse() method of this class. This method accepts the following parameters −A Mat object representing the image on which the ellipse is to be drawn.A RotatedRect object (The ellipse ... Read More

How to draw a line in OpenCV using Java?

Maruthi Krishna

Maruthi Krishna

Updated on 09-Apr-2020 08:24:57

607 Views

The org.opencv.imgproc package of Java OpenCV library contains a class named Imgproc. To draw a line you need to invoke the line() method of this class. This method accepts the following parameters −A Mat object representing the image on which the line is to be drawn.Two Point objects representing the ... Read More

How to convert colored image to HLS using Java OpenCV library?

Maruthi Krishna

Maruthi Krishna

Updated on 09-Apr-2020 08:22:22

162 Views

You can convert HLS image to RGB (colored) image by passing Imgproc.COLOR_RGB2HLS as the 3rd parameter to the cvtColor() method.Exampleimport org.opencv.core.Core; import org.opencv.core.Mat; import org.opencv.imgcodecs.Imgcodecs; import org.opencv.imgproc.Imgproc; public class HSL2RGB {    public static void main(String args[]) throws Exception {       System.loadLibrary( Core.NATIVE_LIBRARY_NAME );       Mat ... Read More

How to convert HLS to colored image using Java OpenCV library?

Maruthi Krishna

Maruthi Krishna

Updated on 09-Apr-2020 08:20:02

166 Views

The cvtColor() method of the Imgproc class changes/converts the color of the image from one to another. This method accepts three parameters −src − A Matrix object representing source.dst − A Matrix object representing the destination.code − An integer value representing the color of the destination image.You can convert a ... Read More

How to convert HSV to BGR image using Java OpenCV library?

Maruthi Krishna

Maruthi Krishna

Updated on 09-Apr-2020 08:17:14

347 Views

The cvtColor() method of the Imgproc class changes/converts the color of the image from one to another. This method accepts three parameters −src − A Matrix object representing source.dst − A Matrix object representing the destination.code − An integer value representing the color of the destination image.To convert an HSV ... Read More

Advertisements