# Re: \[psychtoolbox\] Blur images with gaussian filter in theFourier   domain

**URL:** <https://psychtoolbox.discourse.group/t/re-psychtoolbox-blur-images-with-gaussian-filter-in-thefourier-domain/1280>\
**Category:** Uncategorized\
**Created:** [February 27, 2002, 10:05pm UTC](https://psychtoolbox.discourse.group/t/re-psychtoolbox-blur-images-with-gaussian-filter-in-thefourier-domain/1280 "2002-02-27T22:05:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob94025](https://avatars.discourse-cdn.com/v4/letter/b/a6a055/32.png) [@bob94025](https://psychtoolbox.discourse.group/u/bob94025)\
**Post date:** [February 27, 2002, 10:05pm UTC](https://psychtoolbox.discourse.group/t/re-psychtoolbox-blur-images-with-gaussian-filter-in-thefourier-domain/1280/1 "2002-02-27T22:05:09Z")

</div>

Yes, imshow is part of the image toolbox. Here's a simple alternative:  
  
 image(round(sq\*255)); colormap(gray(256)); axis equal; axis off;  
  
This will show something reasonable, but will not scale the figure to   
show actual pixels. The code to do that robustly is surprisingly   
complex. But here is a quick hack that will probably work:  
  
 set(gca, 'Units', 'pixels');  
 set(gcf, 'Units', 'pixels');  
 figPos = get(gcf, 'Position');  
 set(gcf, 'Position', [figPos(1:2) size(sq)+40]);  
 set(gca, 'Position', [20 20 size(sq)]);  
  
cheers,  
bob  
  
  
Allen W. Ingling wrote:  

> \>   
> \> Andrew Derrington wrote:  
> \>   
> \>   
> \>\>I haven't used Psychtoolbox before, and I thought I'd try your  
> \>\>filtering programme to get me started, but maybe I'm missing  
> \>\>something.  
> \>\>  
> \>\>imshow(sq) throws up an error on my machine. Where is imshow?  
> \>\>  
> \>   
> \> » which imshow  
> \> C:\matlabR12\toolbox\images\images\imshow.m  
> \>   
> \> It might be part of the Matlab image toolbox, which is an add-on package to  
> \> Matlab.  
> \>   
> \> --Allen  
> \>

--   
-=-=-=-=-=-=-=-=-=- [http://www.stanford.edu/~bobd](http://www.stanford.edu/~bobd) -=-=-=-=-=-=-=-=-=-  
 Bob Dougherty [bobd@...](mailto:bobd@...) 474 Jordan Hall  
 Research Scientist (650) 725-0051 (voice) Stanford University  
 Psychology (650) 723-0993 (fax) Stanford, CA 94305-2130
