maximum_response

PURPOSE ^

function mr = maximum_response(observado,M,H,k1,k2,Nbloques);

SYNOPSIS ^

function mr = maximum_response(observado,M,N,H,k1,k2,Nbloques);

DESCRIPTION ^

 function mr = maximum_response(observado,M,H,k1,k2,Nbloques);

  It is employed in costeinvrespfour to obtain the response maximum
  for a bunch of blocks.
  This maximum is employed to set the breack to compute the response inverse
  para establecer el corte al hacer la inversa de la respuesta.

   obsevado: Image
   M: block size
   H: Interaction function (it is obtained with constantes_sin_continua)
   k1: alpha (it is obtained with constantes_sin_continua)
   k2: beta (it is obtained with constantes_sin_continua)
   Nbloques: Number of blocks to obtain the response

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % function mr = maximum_response(observado,M,H,k1,k2,Nbloques);
0002 %
0003 %  It is employed in costeinvrespfour to obtain the response maximum
0004 %  for a bunch of blocks.
0005 %  This maximum is employed to set the breack to compute the response inverse
0006 %  para establecer el corte al hacer la inversa de la respuesta.
0007 %
0008 %   obsevado: Image
0009 %   M: block size
0010 %   H: Interaction function (it is obtained with constantes_sin_continua)
0011 %   k1: alpha (it is obtained with constantes_sin_continua)
0012 %   k2: beta (it is obtained with constantes_sin_continua)
0013 %   Nbloques: Number of blocks to obtain the response
0014 %
0015 %
0016 
0017 function mr = maximum_response(observado,M,N,H,k1,k2,Nbloques);
0018 
0019 [fil,col]=size(observado);
0020 
0021 r=zeros(M);
0022 
0023 filas = round(M/2 + rand(Nbloques,1)*(fil-M));
0024 columnas = round(M/2 + rand(Nbloques,1)*(col-M));
0025 
0026 for i=1:Nbloques
0027 
0028    bl=observado(filas(i)-M/2+1:filas(i)+M/2,columnas(i)-M/2+1:columnas(i)+M/2);
0029 
0030    r = r+ responsefourier(bl,M,H,k1,k2);
0031 
0032 end
0033 
0034 respuestamedia = r/Nbloques;
0035 
0036 mr = max(max(respuestamedia));

Generated on Fri 07-Mar-2014 13:28:33 by m2html © 2005