how to find the tumor area using newton divided difference interpolation method?

I have real images of brain tumor now i want to apply numerical methods like newton divided difference interpolation on that image to calculate the shape and size of tumor or to find the centre point of tumor area using same method. That is possible or not to apply this method. i have this image .
can anyone code this problem? i do not know how to apply this method or how to code. please

2 Kommentare

Are you limited to use newton divided difference interpolation? It would be a fairly straightforward task if you threshold and then count pixels. Let me know if you are interested in that, I will send you the code.
Yes send me the code.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Tala
Tala am 18 Apr. 2022
Bearbeitet: Tala am 18 Apr. 2022
you can combine somesteps in this code, but for educational purposes I have all the steps:
I0=imread('image.jpeg'); % read the image
I1=rgb2gray(I0); % grayscale
I2=I1>200; % threshold values above 200 (white)
I2 = imclearborder(I2); % you have a thick border around your image; this would eliminate the border
I3= bwareaopen(I2, 50); % removeing objects smaller than 50 pixels
I4=imfill(I3,'holes'); % filling the hole
stat= regionprops('table',I4,'Centroid','Area'); % geting area and centroid of the white object
imshow(I0);
hold on
plot(stat.Centroid(1),stat.Centroid(2),'r+'); % plot centroid
text(100,100, [ 'area in pixels= ' num2str(stat.Area)], 'Color', 'r','FontSize',14); % area

4 Kommentare

we can not apply newton divided difference interpolation method if please send me the code.
Error using horzcat
Dimensions of matrices being concatenated are not consistent.
Error in p15 (line 13)
text(100,100, [ 'area in pixels= ' num2str(stat.Area)], 'Color', 'r','FontSize',14); % area
just clear your workspace, and try again. You should be fine using this code
i want to apply newton method to centroid tumor region

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Medical Physics finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 18 Apr. 2022

Kommentiert:

am 18 Apr. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by