| T O P I C R E V I E W |
| luke.vicens |
Posted - Nov 15 2006 : 3:52:46 PM Hello,
Vinod Venkatraman asked me to post this query for him while he's waiting to get his forum account sent up. If anyone knows the answer and can post it here, I'll forward it on to him.
Thanks,
Luke
------------ Hi,
I understand that there is a matlab script for scrambling pictures using fourier transform method. Does anyone know where I can find this script?
Thanks
|
| 1 L A T E S T R E P L I E S (Newest First) |
| petty |
Posted - Nov 15 2006 : 4:20:39 PM \\Hall\Data5\Stimuli\Scripts\scramblecolorimages.m
here is a simple script that will run all your images through:
basePath = fullfile(findexp('YOURSTUDY.02'),'Stimuli','Images','Emotional');
%filter the directory diffFilter = fullfile(basePath,'*.bmp'); diffSearch = dir(diffFilter); diffList = {diffSearch.name}; str = (diffList);
for a = 1:length(str)
inFormat = 'bmp'; outFormat = 'bmp'; inSpec = fullfile(basePath,[str{a}]); outPath = basePath; % inSpec = fullfile(basePath,catDir,['*.',inFormat]); % outPath = fullfile(basePath,strcat(catDir,'_Scr')); %outPath = 'D:\ScrTest'; outPrefix = 'scr_'; showResults = 0;
scramblecolorimages(inSpec, inFormat, outPath, outFormat, outPrefix, showResults) end |
|
|