MWorks question

arash.afraz's Avatar

arash.afraz

13 Jul, 2017 01:35 PM

Hey Chris,

I hope the summer is not steam cooking you guys in Cambridge, we are already steam cooked down here :)

Yvonne (cced here) is setting up her experiment in my lab, we need to show many (millions of) unique white noise displays to the monkey, do you think we have to generate the noises in a separate platform (e.g. MATLAB) and feed them to MWorks as images or create them in MWorks? What are the pros and cones of each approach?

Cheers,
Arash

  1. 1 Posted by Christopher Sta... on 13 Jul, 2017 01:40 PM

    Christopher Stawarz's Avatar

    Hi Arash & Yvonne,

    Are you aware of MWorks’ white noise background stimulus? It fills the stimulus display with random grayscale pixels, which can be re-randomized by your experiment at any time.

    If that doesn’t meet your needs, then the next best thing would be to either (1) modify it so that it does, or (2) write a new stimulus plugin that does what you want. I’d be happy to work on that for you.

    The main advantages I see in generating the noise images outside of MWorks are (1) you’d have full control over how they’re created (so you could, for example, use a non-uniform distribution to generate pixel values), and (2) you wouldn’t have to wait for me to modify or write a stimulus plugin. Also, if you wanted to save copies of all the noise images you display, then it’d probably be simpler to generate all of them ahead of time and store them in image files.

    Summer in Cambridge hasn’t been too bad so far. I hope you’re finding ways to stay cool!

    Chris

  2. 2 Posted by arash.afraz on 13 Jul, 2017 01:41 PM

    arash.afraz's Avatar

    Thanks Chris,

    I guess it is better to create the images outside MWorks because we may want to try many different types of noises and distributions as you mentioned. The problem is that for each experiment we will need thousands of unique noises and that may be tricky on the Works side to load them all upfront. Do you see any limitations with that?

    Cheers,
    Arash

  3. 3 Posted by Christopher Sta... on 13 Jul, 2017 01:42 PM

    Christopher Stawarz's Avatar

    Yes, you almost certainly won’t have enough main memory or video memory to have thousands of full-screen-sized images loaded at once. You’ll need to use deferred loading and explicitly load/unload each image as you need it. Please see the section "Manage image loading/unloading explicitly” in the Image stimulus memory usage knowledge base article.

    Chris

  4. 4 Posted by arash.afraz on 13 Jul, 2017 01:43 PM

    arash.afraz's Avatar

    Thanks Chris,

    We will play with it and get back to you with more questions.

    Cheers,
    Arash

  5. Support Staff 5 Posted by Christopher Sta... on 13 Jul, 2017 02:01 PM

    Christopher Stawarz's Avatar

    OK. If you need examples or other help, please let me know.

    Chris

  6. Christopher Stawarz closed this discussion on 12 Aug, 2017 03:41 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac