Is it possible to make K-means clustering algorithm avoid some intensities
조회 수: 1 (최근 30일)
이전 댓글 표시
%% kmeans clustering
pixel_labels= imsegkmeans(maskedimage,2);
B = labeloverlay(maskedimage,pixel_labels);
This is code but it takes dark area of mask as group of pixels and segmenates it and makes rest of the image background, i only want it to segment image into 2 part without taking dark part into consideration (without zeros) I have to use k-value as 2, because some images don't have mask thank you
댓글 수: 3
Hari Krishna Ravuri
2019년 7월 30일
Can you provide some sample normal images,sample images for which you want to apply mask before k-means and the images after applying the mask.
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!