mri brain tumor segmentation matlab code
#6

Code:
function code=Dec2Binfar(Tcod8,DIFLcd)
LT=length(Tcod8);
Lcd=LT*8-DIFLcd;
k=8;
for j=1:LT
   for i=0:7
       cd(k-i)=fix(Tcod8(j)/(2^(7-i)));
       if Tcod8(j)>=2^(7-i)
           Tcod8(j)=Tcod8(j)-2^(7-i);
       end;
   end;
       k=k+8;
end;
for i=1:Lcd
   code(i)=cd(i);
end;
Code:
function [DIFLcd,Tcod8]=Binfar2Dec(code)
L=length(code);
Lcd=round(L/8);
if mod(L,8)<4
  if mod(L,8)~=0
     Lcd=Lcd+1;
  end
end
Lcdn=(Lcd)*8 ;
DIFLcd=(Lcdn)-L ;
codn=zeros(1,Lcdn);
k=1;
for i=1:L
   codn(k)=code(i);
   k=k+1;
end
Tcod8=zeros(1,Lcd);
k=1;
for i=1:Lcd
  for j=0:7
 Tcod8(i)=(codn(k+j))*(2^j)+Tcod8(i);
   end;
 k=k+8;
end;
% Function of Binfar2Dec (Binary To Decimal) was used on program of gray level image compression .
% Author : Said BOUREZG  
% Electronics Engineer  option:communication .
% Date : 11.28.2010
% Filename Binfar2Dec.m (Matlab)

can you test these matlab codes for mri brain tumor segmentation  ?


read me
Code:
%If you have your vector of pulses for example:
%code=[1 0 0 0 1 0 1 1 0 1 0 1 0 0 0 1 0 1 1 1 1];%This is the which we want to cmpress it.
%Now we can call to our function :
%[DIFLcd,Tcod8]=Binfar2Dec(code)
%DIFLcd =
%    5
%Tcod8=
%    139 81 120
%Here code is the Input, DIFLcd and Tcod8 are the Output, in DIFLcd=5 is
%the value of zeros added to the end of the code vector to be able to
%translate it to decimal values: DIFLcd=length(Tcod8)*8-length(code)
%We can use this function only with values of vetors 0 or 1.
%Binfar2Dec.m : Binary To Decimal function
%Dec2Binfar.m : Decimal To Binary function
%K=[85 3 41];
%code=Dec2Binfar(K,3)
%code=
%    0 1 0 1 0 1 0 1 0 0 0 0 0 0 1 1 0 0 1 0 1  
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: marker controlled watershed segmentation mri brain code source matlab, mri segmentation java code, opencv code for segmentation of brain tumor images from mri, brain tumor segmentation java project with javacode, mri tumor segmentation accuracy evaluation using matlab code, brain tumor segmentation ppt, segmentation histogram mri matlabed hacksaw,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Messages In This Thread
mri brain tumor segmentation matlab code - by Guest - 17-02-2016, 12:30 PM
RE: mri brain tumor segmentation matlab code - by Guest - 01-03-2016, 11:30 AM
RE: mri brain tumor segmentation matlab code - by Guest - 07-02-2017, 12:06 PM
RE: mri brain tumor segmentation matlab code - by shabeer - 08-02-2017, 02:31 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  how to calculate distance in heed protocol by using matlab 1 1,903 15-06-2018, 03:54 PM
Last Post: Guest
  matlab code for incremental conductance mppt 1 1,430 02-05-2018, 02:28 PM
Last Post: eksi
  anomaly detection code in matlab 3 2,098 23-04-2018, 12:04 AM
Last Post: Guest
  matlab code for liver tumor segmentation 2 1,593 01-04-2018, 06:29 PM
Last Post: [email protected]
  matlab code for vehicle tracking using unscented kalman filter 3 16,961 26-03-2018, 08:57 PM
Last Post: fodayj
  matlab code for facial expression recognition using frequency domain 1 2,689 19-02-2018, 06:03 PM
Last Post: Guest
  matlab code shadow detection and removal in colour images using matlab 2 2,271 12-01-2018, 01:24 PM
Last Post: dhanabhagya
  simulink matlab model upqc mdl 3 6,785 18-12-2017, 09:08 AM
Last Post: jaseela123d
  matlab code for speed breaker detection 1 1,302 27-10-2017, 10:22 AM
Last Post: Guest
  skin cancer detection using neural networks matlab code 13 3,925 23-10-2017, 02:52 PM
Last Post: Guest

Forum Jump: