i have a circular image that i want to place square mosaic tiles. Got thoughts about using vectorization. So please,how is vectorization of tiles done using polygons?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
This is the code i have written so far. i am using gradient vector flow(gvf) function. I = imread('taijitu main.jpg'); [R C]= size(I); cmap = rgb2hsv(I); luminance = hsv(3); [histIm,T]= histeq(luminance); [Gmag, Gdir]= imgradient(luminance,'roberts'); [u,v]= GVF([Gmag,Gdir],0.2,80); gvf = sqrt(u.^2 + v.^2); B = sort(I,'descend'); for i=1:R-1 for j=1:C-1 if gvf(i,j)> 0 I(i,j)=1; I=I+1; end end end
1 Kommentar
Image Analyst
am 2 Jun. 2016
Please attach 'taijitu main.jpg' so we can run your code and see what you have done so far.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Interpolation finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!