draw image, How can I draw the image ? display cluster in an image
Ältere Kommentare anzeigen
Hello, i have code, i need to draw image
my code
close all; clc; clear;
img = imread('pic7.png');
figure(), imshow(img);
impixelregion;
% nastavenie noveho obrazka
[y x z] = size(img)
for i=1:1:y
for j=1:1:x
imgNew(i, j, :) = 0;
end
end
[X_no_dither, map]= rgb2ind(img,12,'nodither');
figure, imshow(X_no_dither, map);
impixelregion;
img = im2double(X_no_dither)
P=size(img);
idx = kmeans(img,4,'emptyaction','singleton');
How can I draw the image back by?
Thank for help
1 Kommentar
Tomas
am 1 Apr. 2014
Antworten (0)
Kategorien
Mehr zu ROI-Based Processing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!