Multiply image with vector
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Alessandro
el 3 de Sept. de 2014
Editada: Sean de Wolski
el 3 de Sept. de 2014
Hello is there a function in Matlab where I could multiply an NxM image with a vector ?
I would do something like this :
>> vec = [1,2,3];
>> vec = reshape(vec,[1,1,3]);
>> img = [1,1;1,1];
>> imgrgb = dimmulty(3,vec,img);//imgrgb is a 2x2x3 image
What I am searching is the dimmulty function !
0 comentarios
Respuesta aceptada
Sean de Wolski
el 3 de Sept. de 2014
Editada: Sean de Wolski
el 3 de Sept. de 2014
bsxfun does exactly that :)
>> bsxfun(@times,vec,img)
(I use this really frequently for applying operations to RGB images)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Processing Toolbox 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!