Vision Save Image Vision Sobel Edge navigation bar

Table of Contents

Vision Smooth

Beta

This block is currently a beta version. If you are using this block, we would appreciate any feedback at tech@quanser.com.

Smooths the input image.

Library

QUARC Targets Beta/Image Processing/Open Source Computer Vision

Description

Vision Smooth

The Vision Smooth block smooths an input image using the specified smoothing method.

In order to use this block, be sure to follow the instructions described on the Vision Capture Image page, and take careful note of the limitations.

Input Ports

src_image

A handle to a source image that uses OpenCV (Open Source Computer Vision) IplImage structure.

Output Ports

dst_image

Destination image processed with the specified smoothing method.

err

An error signal which is negative in case of invalid memory allocation or usage of invalid parameter values.

Parameters and Dialog Box

Vision Smooth

Type of smoothing filter

Specifies the smoothing method to be applied on the input image. The available filter types are Blur, Gaussian, and Median. The filters are described as follows:

Smoothing parameters

Specify the smoothing parameters. The first and second parameters indicate the number of columns (ncols) and rows (nrows), respectively, of a pixel neighborhood. In case of Gaussian kernel, the third and fourth parameters are used as standard deviations in horizontal and vertical directions (sigmah and sigmav), respectively. If the third and fourth parameters are zero, the sigmas are calculated as follows:

                sigma = (n/2 - 1)*0.3 + 0.8, where n=ncols for horizontal kernel,
                                                   n=nrows for vertical kernel.
            

Sample time

The sample time of the block. A sample time of 0 indicates that the block will be treated as a continuous time block. A positive sample time indicates that the block is a discrete time block with the given sample time. A sample time of -1 indicates that the block inherits its sample time.

Targets

Target Name

Compatible*

Model Referencing

Comments

QUARC Win32 Target

No

No

Not supported.

QUARC Win64 Target

No

No

Not supported.

QUARC Linux Nvidia Target

Yes

Yes

QUARC Linux QBot Platform Target

Yes

Yes

QUARC Linux QCar 2 Target

Yes

Yes

QUARC Linux QDrone 2 Target

Yes

Yes

QUARC Linux Raspberry Pi 3 Target

Yes

Yes

QUARC Linux Raspberry Pi 4 Target

Yes

Yes

QUARC Linux RT ARMv7 Target

Yes

Yes

QUARC Linux x64 Target

Yes

Yes

QUARC Linux DuoVero Target

Yes

Yes

QUARC Linux DuoVero 2016 Target

Yes

Yes

QUARC Linux Verdex Target

Yes

Yes

QUARC QNX x86 Target

No

No

Not supported.

Rapid Simulation (RSIM) Target

No

No

Not supported.

S-Function Target

No

N/A

Old technology. Use model referencing instead.

Normal simulation

Yes

Yes

* Compatible means that the block can be compiled for the target.

 

navigation bar