0
A
回答
0
在圖像處理中,重要的是看看你的圖像,並試圖理解你感興趣的區域(即斑馬)和其餘部分(即背景)之間的差異。
在這個例子中,一個明顯的區別是背景是相當綠色和斑馬黑色和白色。因此,圖像的綠色通道可用於提取背景。之後,可以使用一些擴張和侵蝕步驟(非線性)清理結果。
一個簡單的和不完美的分割技術(在Matlab):
I = imread('lA196m.jpg');
% plot the original image
figure
subplot(2,2,1)
imshow(I)
% calculate the green channel (relative green value)
greenChannel = double(I(:,:, 2))./mean(I(:,:,:), 3);
binary = greenChannel > 1; % apply a thresshold
subplot(2,2,2)
imshow(binary);
% remove false positives (backgrounds)
se1 = strel('sphere',20);
binary2 = imdilate(imerode(binary,se1), se1);
subplot(2,2,3)
imshow(binary2);
% add false negatives
se2 = strel('sphere',10);
binary3 = imerode(imdilate(binary2,se2), se2);
subplot(2,2,4)
imshow(binary3);
% calculate & plot the boundary on the original image
subplot(2,2,1)
Bs = bwboundaries(~binary3);
B = Bs{1};
hold on
plot(B(:, 2), B(:, 1), 'LineWidth', 2);
相關問題
- 1. matlab中的圖像處理(分割)
- 2. 圖像預處理的圖像分類和語義分割
- 3. 如何處理/操作分割圖像
- 4. 使用MATLAB分割圖像處理
- 5. 並行處理分割大圖像
- 6. 圖像分割
- 7. 在Python中分割圖像
- 8. GPU上的紋理圖像處理?
- 9. 圖像分割(MATLAB)
- 10. 將圖像分割成多張圖像
- 11. jqGrid斑馬條紋
- 12. Python:圖像分割作爲分類的預處理
- 13. 斑點檢測和圖像分割之間的差異
- 14. 是兩個對象的斑點的圖像分割
- 15. 如何在許多圖像中分割圖像?在R
- 16. 在webservice中處理圖像
- 17. 在Drupal中處理圖像
- 18. 圖像處理
- 19. 圖像處理
- 20. 圖像處理
- 21. 圖像處理
- 22. 圖像處理
- 23. 圖像處理
- 24. 圖像處理
- 25. 圖像處理
- 26. 圖像處理
- 27. 報告標題處的斑點圖像
- 28. 在C中生成紋理圖像#
- 29. 在圖像中檢測紋理
- 30. 圖像紋理GLCM(mean_Envi)
你爲什麼不添加的東西你試過? –
我是IP初學者,我使用了openCV提供的一些標準算法。但他們也把條視爲物體。 – user7837687
如果你是初學者,你應該做其他事情。有一天你會收集足夠的知識來了解什麼是必要的。 – Piglet