How can i produce a skeleton vein network?

2 vues (au cours des 30 derniers jours)
sophie kelly
sophie kelly le 1 Fév 2016
I am trying to create a vein mapping of an image of the palm of the hand but with my code it doesn't convert the image to a skeleton from.
A = imread ('test2.tif');
% rect = [300 10 675 675];
% D = imcrop(A, rect);
% imshow(D, []);
B3 = rgb2gray(A) %convert from balck and white to a grayscale
% B = histeq(B3); % improves contrast
figure, imshow(B3)
% B1 = B > 100;
% figure, imshow(B1, [])
background = imopen(B3,strel('disk',100)); % determines bacl ground
figure, imshow(background)
% B_leveled = double(B) - double(BW);
B4 = imsubtract(B3, background) %subtracts the background from the original image
figure, imshow(B_leveled)
B = histeq(B4); % improves contrast
figure, imshow(B)
B6 = edge(B)
sr = strel('line',9,100);
B5 = imdilate(B,sr) %dilates the image
figure, imshow(B5)
%BW2 = bwmorph(B5,'remove');
BW3 = bwmorph(B5,'skel',Inf); % change the image ot a sceleton image
figure, imshow(BW3)

Réponses (1)

Akhil Kallepalli
Akhil Kallepalli le 24 Juin 2017
Modifié(e) : Akhil Kallepalli le 24 Juin 2017
HI Sophie Kelly,
I am working on a similar domain and problem. I found a couple of Matlab packages which were quite useful.
Look into Bram Ton's profile link Bram Ton Profile (4 programs available)
Hope this helps!
Akhil

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by