Docs @ Psychtoolbox Wiki : PsychHelperCreateRemapCLUT

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

PsychHelperCreateRemapCLUT

PsychtoolboxPsychGLImageProcessing

remapCLUTId = PsychHelperCreateRemapCLUT(cmd, arg);

Helper function for Psychtoolbox imaging pipeline, called by
PsychImaging(), not meant to be called by normal user code!

If 'cmd' command code is zero, then:


Build a 3 rows by arg1 texels RGBA8 lookup texture for mapping of RGB
pixel values in range 0 to (arg-1) to RGBA8 framebuffer pixels. This
texture is used as CLUT texture for the
RGBMultiLUTLookupCombine_FormattingShader.frag.txt in the image
processing chains of the imaging pipeline. If arg2 is set to 1 instead of
zero, a 32 bpc float texture is used instead of 8 bpc integer.

If 'cmd' command code is 1, then the clut texture with id arg1 is updated
with the content of clut table arg2.





Path   Retrieve current version of PsychHelperCreateRemapCLUT.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychGLImageProcessing/PsychHelperCreateRemapCLUT.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0243 seconds