Multiply image with vector
    3 ビュー (過去 30 日間)
  
       古いコメントを表示
    
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 件のコメント
採用された回答
  Sean de Wolski
      
      
 2014 年 9 月 3 日
        
      編集済み: Sean de Wolski
      
      
 2014 年 9 月 3 日
  
      bsxfun does exactly that :)
>> bsxfun(@times,vec,img)
(I use this really frequently for applying operations to RGB images)
0 件のコメント
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

