Welcome! Log In Create A New Profile

Advanced

Alpha/transparency value for specific pixels of image

Posted by curiousgeorge 
Alpha/transparency value for specific pixels of image
August 04, 2022 08:30AM
Hi,

I'd like to add transparency/specify alpha value for specific pixels that I am reading into my ImageGraphic adapter. I would like to present an image ("mask") on top of a background image with a specific pixels of this mask image more opaque than others.

I've made this mask image and have saved it with the desired alpha values, but it appears that you must extract the alpha values and indicate it every time when presenting the image in matlab. If I would like to do this in Monkeylogic while presenting a stimuli how do I go about it?

Thanks,
Borna
Re: Alpha/transparency value for specific pixels of image
August 04, 2022 04:08PM
Study the example tasks and read the manual.

task\runtime v1\6 grating
task\runtime v1\7 spotlight

https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#ImageGraphic

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.