在執行3D CT的分水嶺後,我只選擇小於某個值且大於另一個的粒子。然而,作爲最終輸出,我需要一個只包含連續ID的矩陣。我的實現如下: % Get unique IDs
grain_id = unique(L);
% Get rid of artefacts
% Compute histogram for each ID
% and compare volume numv with thr
我正在使用分水嶺算法嘗試和分割觸摸核。典型的圖像可能看起來像: 或本: 我想使用此代碼應用分水嶺算法: show(RGB_img)
%Convert to grayscale image
I = rgb2gray(RGB_img);
%Take structuring element of a disk of size 10, for the morphological transfo
我想在OpenCV中創建兩個Blob的平均值。爲了實現這一目標,我打算以下列方式預處理的圖像上使用分水嶺算法: cv::Mat common, diff, processed, result;
cv::bitwise_and(blob1, blob2, common); //calc common area of the two blobs
cv::absdiff(blob1, blob2,