adaptiveThreshold metodu
Örnek ver
cvCvtColor metodu - C İçi şöyledir.
cvCvtColor metodu - C İçi şöyledir.
CV_IMPL void cvCvtColor( const CvArr* srcarr, CvArr* dstarr, int code )
{
cv::Mat src = cv::cvarrToMat(srcarr), dst0 = cv::cvarrToMat(dstarr), dst = dst0;
CV_Assert( src.depth() == dst.depth() );
cv::cvtColor(src, dst, code, dst.channels());
CV_Assert( dst.data == dst0.data );
}
cvtColor metodu - C++cvtColor metodu yazısına taşıdım
distanceTransform metodu
Örnek ver
floodFill metodu
Açıklaması şöyle
Algoritma şöyleFlood fill, also called seed fill, is an algorithm that determines the area connected to a given node in a multi-dimensional array. It is used in the "bucket" fill tool of paint programs to fill connected, similarly-colored areas with a different color, and in games such as Go and Minesweeper for determining which pieces are cleared. When applied on an image to fill a particular bounded area with color, it is also known as boundary fill.
1. Mark all empty cells as unknown (all full cells are unreachable)grabCut metodu
2. Add the source cell to a set of routable cells
3. While the set is not empty:
- pop an element from the set;
- mark all adjacent unknown cells as "reachable" and add them to the set
4. All remaining unknown cells are unreachable.
Örnek ver
Örnek ver
threshold metoduŞöyle yaparız.
laplacian_img_RGB = cv2.cvtColor(laplacian_img, cv2.COLOR_GRAY2BGR)
ret, thresh = cv2.threshold(laplacian_img, 140, 255, cv2.THRESH_BINARY)
watershed metodu
Örnek ver
Hiç yorum yok:
Yorum Gönder