how to separate region of interest from the rest portion
Show older comments
I have taken a photograph and got the ROI based on the color of the skin.Now i want to seperate the ROI from the rest of the portion.
2 Comments
Image Analyst
on 22 Mar 2014
What does that mean? You already have an ROI so I assume that is a binary image of which pixels are skin and which are not. What else more do you need? What are the two things you will have after you do this undefined "separation"?
tawheed jan
on 23 Mar 2014
Answers (1)
Image Analyst
on 23 Mar 2014
0 votes
Try the attached test script, below in blue.

9 Comments
ensg
on 9 Oct 2014
HELLO I NEED TO HELP WITH MY PROJECT I DO AN HISTOGRAM AND I STUDY THE PARTS OF OXIGEN AND THE NASAL BONES BECAUSE I AM GOINT TO DO AXIAL CUTS IN THE HEAD PLEASE HELP ME WITH THE MATLAB CODE THANKS
ensg
on 9 Oct 2014
DO YOU SPEAK SPANISH?
Image Analyst
on 9 Oct 2014
No I don't, or just barely enough, "tourist spanish". Google translate does, at least enough to get a somewhat understandable translation.
ensg
on 9 Oct 2014
you understand me ?
ensg
on 9 Oct 2014
i need help i like contact with you and i tell you my project trank you very much
Image Analyst
on 9 Oct 2014
Yes. Just go ahead and start your own new question.
ensg
on 9 Oct 2014
I have the file and have more good files with this file drawing head and I have to do a histogram and separate air and bones and select the ROI I have that make axial slices and make a histogram my teacher has told me that I have to use bulabel i need help
ensg
on 9 Oct 2014
% 1_0 -> efecto de "loncheado" vertical, parece que faltasen cortes % 1_1 -> scan vertical en 2 tramos inconexos, "loncheado" % 1_2 -> no es 3D, son 2 cortes sueltos % 1_3 -> orientación "tumbado" % 2_0 -> OK, 47 cortes eje axial % 2_1 -> OK, 29 cortes eje axial % 2_2 -> OK, 201 cortes eje axial % 2_3 -> OK, 47 cortes eje axial % 2_4 -> OK, 201 cortes eje axial % 2_5 -> no es 3D, un solo corte % 2_6 -> orientación "tumbado", con proyección incluida
load 'TAC-Nasal-MATLAB\TAC_Nasal_2_2' v = volume(1:2:end,1:2:end,1:1:end); close all, figure(1) p = patch(isosurface(v, 700)); %isonormals(v, p) set(p, 'FaceColor', 'red', 'EdgeColor', 'none'); daspect([1 1 size(v,3)/size(v,1)*1.5]) view(3) camlight; lighting phong
figure(2), v2=zeros(size(v,1),size(v,2),1,size(v,3)); v2(:,:,1,:)=v; v2=(v2-min(v2(:)))/(max(v2(:))-min(v2(:))); montage(v2), set(gcf,'Name',[num2str(size(v,3)) ' cortes verticales'])
ensg
on 9 Oct 2014
this is the code to get the head now i am going to do axial cut and the histogram..... thanks
Categories
Find more on ROI-Based Processing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!