When I used below code then mask is properly visible(not only the boundary).
cell_t binary( cell_t ft)
{
if(ft == 6)
ft=255;
else
ft=0;
return ft;
}
I used 6 because , after reading the image I found the largest pixel having value as 6. There are other values present as well like 2,4,1 etc.
My question is Did I process correctly? If not then how can I be sure that pixel values other than 6 does not/ does lie in the brain portion. If the values are based upon tissue type then there must be three values to be lied in the brain portion.
I