How to calculate the mean and standard deviation of the 27 neighbourhood of a voxel in a 3D matrix?
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Joaquim
 el 25 de Abr. de 2017
  
    
    
    
    
    Respondida: Image Analyst
      
      
 el 25 de Abr. de 2017
            Hello everybody!
I have a matrix 336*336*65. I want to create two new matrices of the same size, one representing the mean value of the 27-neighboor of each voxel and another one representing the standard deviation for the same neighbors.
Can anyone help me?
0 comentarios
Respuesta aceptada
  Image Analyst
      
      
 el 25 de Abr. de 2017
        Use convn() and stdfilt().
kernel = ones(3,3,3);
out = convn(inputImage, kernel, 'same')
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Image Segmentation and Analysis en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

