I would like to create an matrix image for the blood vessel with different pixel value for the blood vessel by the code below that i tried. First, i create an image with all 0 pixels then i would like to add a specific value to the coordinates of the image but i end up with the whole line of the position with the specific value. Any suggestion or code like drawing a curve line by matrix can i do for this work? thank you for the help.
row = 255;
col = 255;
img = zeros(row, col);
img(50:105, 🙂 = 0.2;
img(:, 100:105) = 0.5;
figure;
imshow(img);
Best Answer