• Roman Donchenko's avatar
    Merge remote-tracking branch 'origin/2.4' into merge-2.4 · aacf188e
    Roman Donchenko authored
    Conflicts:
    	modules/ocl/include/opencv2/ocl/ocl.hpp
    	modules/ocl/src/arithm.cpp
    	modules/ocl/src/build_warps.cpp
    	modules/ocl/src/color.cpp
    	modules/ocl/src/haar.cpp
    	modules/ocl/src/imgproc.cpp
    	modules/ocl/src/split_merge.cpp
    	modules/ocl/test/test_color.cpp
    	samples/cpp/3calibration.cpp
    	samples/cpp/OpenEXRimages_HDR_Retina_toneMapping.cpp
    	samples/cpp/OpenEXRimages_HDR_Retina_toneMapping_video.cpp
    	samples/cpp/Qt_sample/main.cpp
    	samples/cpp/camshiftdemo.cpp
    	samples/cpp/descriptor_extractor_matcher.cpp
    	samples/cpp/distrans.cpp
    	samples/cpp/generic_descriptor_match.cpp
    	samples/cpp/grabcut.cpp
    	samples/cpp/morphology2.cpp
    	samples/cpp/segment_objects.cpp
    	samples/cpp/stereo_calib.cpp
    	samples/cpp/tutorial_code/Histograms_Matching/compareHist_Demo.cpp
    	samples/cpp/tutorial_code/core/mat_mask_operations/mat_mask_operations.cpp
    	samples/cpp/tutorial_code/introduction/display_image/display_image.cpp
    	samples/cpp/tutorial_code/introduction/windows_visual_studio_Opencv/Test.cpp
    	samples/cpp/tutorial_code/objectDetection/objectDetection.cpp
    	samples/cpp/tutorial_code/objectDetection/objectDetection2.cpp
    	samples/cpp/video_dmtx.cpp
    aacf188e
image_processing.rst 13.5 KB

Image Processing

ocl::meanShiftFiltering

Performs mean-shift filtering for each point of the source image.

It maps each point of the source image into another point. As a result, you have a new color and new position of each point.

ocl::meanShiftProc

Performs a mean-shift procedure and stores information about processed points (their colors and positions) in two images.

ocl::meanShiftSegmentation

Performs a mean-shift segmentation of the source image and eliminates small segments.

ocl::integral

Computes an integral image.

ocl::cornerHarris

Returns void

Calculate Harris corner.

ocl::cornerMinEigenVal

Returns void

Calculate MinEigenVal.

ocl::calcHist

Returns void

Calculates histogram of one or more arrays. Supports only 8UC1 data type.

ocl::equalizeHist

Equalizes the histogram of a grayscale image.

ocl::remap

Returns void

The function remap transforms the source image using the specified map: dst (x ,y) = src (map1(x , y) , map2(x , y)) where values of pixels with non-integer coordinates are computed using one of available interpolation methods. map1 and map2 can be encoded as separate floating-point maps in map1 and map2 respectively, or interleaved floating-point maps of (x,y) in map1.

ocl::resize

Returns void

Resizes an image. Supports CV_8UC1, CV_8UC3, CV_8UC4, CV_32FC1 , CV_32FC3 and CV_32FC4 data types.

ocl::warpAffine

Returns void

The function warpAffine transforms the source image using the specified matrix. Supports INTER_NEAREST, INTER_LINEAR, INTER_CUBIC types.

ocl::warpPerspective

Returns void

Applies a perspective transformation to an image. Supports INTER_NEAREST, INTER_LINEAR, INTER_CUBIC types.

ocl::cvtColor

Returns void

Converts image from one color space to another.For now, only RGB2GRAY is supportted. Supports.CV_8UC1,CV_8UC4,CV_32SC1,CV_32SC4,CV_32FC1,CV_32FC4

ocl::threshold

Returns Threshold value

The function applies fixed-level thresholding to a single-channel array. The function is typically used to get a bi-level (binary) image out of a grayscale image or for removing a noise, i.e. filtering out pixels with too small or too large values. There are several types of thresholding that the function supports that are determined by thresholdType.

ocl::buildWarpPlaneMaps

Builds plane warping maps.

ocl::buildWarpCylindricalMaps

Builds cylindrical warping maps.

ocl::buildWarpSphericalMaps

Builds spherical warping maps.

ocl::buildWarpPerspectiveMaps

Builds transformation maps for perspective transformation.

ocl::buildWarpAffineMaps

Builds transformation maps for affine transformation.

ocl::HoughCircles

Finds circles in a grayscale image using the Hough transform.

Note

Currently only non-ROI oclMat is supported for src.