Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Support Forums
 Experimental Control
 matlab script for scrambling pictures using fourie

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.39 seconds. Snitz Forums 2000