Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password   Forgot your Password?
 All Forums
 Support Forums
 Experimental Control
 matlab script for scrambling pictures using fourie
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

luke.vicens
Starting Member

7 Posts

Posted - Nov 15 2006 :  3:52:46 PM  Show Profile  Reply with Quote
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

petty
BIAC Staff

USA
453 Posts

Posted - Nov 15 2006 :  4:20:39 PM  Show Profile  Reply with Quote
\\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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.41 seconds. Snitz Forums 2000