How can i divied brain tumor image to 9 image for same image

조회 수: 1 (최근 30일)
Daleel Ahmed
Daleel Ahmed 2018년 8월 2일
댓글: Daleel Ahmed 2018년 8월 3일
I1=I(1:size(I,1)/2,1:size(I,2)/2,:); I2=I(size(I,1)/2+1:size(I,1),1:size(I,2)/2,:); I3=I(1:size(I,1)/2,size(I,2)/2+1:size(I,2),:); I4=I(size(I,1)/2+1:size(I,1),size(I,2)/2+1:size(I,2),:);
  댓글 수: 5
jonas
jonas 2018년 8월 3일
"Ok No problem"
So, can you put some effort into your work? People are trying to help you. Reading your most recent reply to IA's answer genuinely made me laugh.
Daleel Ahmed
Daleel Ahmed 2018년 8월 3일
I was do preprocessing to my image by adaptive medain filter and i was make frame to my image 4 frame for each image. And i was extrct feature using haralick And now i need some one to help me to train neural net work or anfis system to classify my image for brain tumor

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2018년 8월 3일
OK, here it is:
grayImage = imread('cameraman.tif');
[rows, columns, numberOfColorChannels] = size(grayImage);
row1 = round(rows / 3)
row2 = round(rows * 2 / 3)
col1 = round(columns / 3)
col2 = round(columns * 2 / 3)
i11 = grayImage(1:row1, 1:col1);
subplot(3, 3, 1);
imshow(i11);
i12 = grayImage(1:row1, col1+1:col2);
subplot(3, 3, 2);
imshow(i12);
i13 = grayImage(1:row1, col2:end);
subplot(3, 3, 3);
imshow(i13);
i21 = grayImage(row1+1:row2, 1:col1);
subplot(3, 3, 4);
imshow(i21);
i22 = grayImage(row1+1:row2, col1+1:col2);
subplot(3, 3, 5);
imshow(i22);
i23 = grayImage(row1+1:row2, col2:end);
subplot(3, 3, 6);
imshow(i23);
i31 = grayImage(row2:end, 1:col1);
subplot(3, 3, 7);
imshow(i31);
i32 = grayImage(row2:end, col1+1:col2);
subplot(3, 3, 8);
imshow(i32);
i33 = grayImage(row2:end, col2:end);
subplot(3, 3, 9);
imshow(i33);

추가 답변 (1개)

Image Analyst
Image Analyst 2018년 8월 3일
편집: Image Analyst 2018년 8월 3일
That's basically it, just use 9 equations instead of 4, and 1/3 and 2/3 instead of 1/2.
  댓글 수: 4
Daleel Ahmed
Daleel Ahmed 2018년 8월 3일
I1=I(1:size(I,1)/2,1:size(I,2)/2,:); I2=I(size(I,1)/2+1:size(I,1),1:size(I,2)/2,:); I3=I(1:size(I,1)/2,size(I,2)/2+1:size(I,2),:); I4=I(size(I,1)/2+1:size(I,1),size(I,2)/2+1:size(I,2),:); Divied the image to 4 and i need to divied it to 9 because I wanna to extract feature using haralick to train eleman network
Daleel Ahmed
Daleel Ahmed 2018년 8월 3일
Now I wanna to increase the number of frame but i don’t now how to do that 2- i have Problem in my code to train neural networks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by