Microscopy Image Browser  1.233
All Classes Files Functions Variables Pages
ib_channelMixerTable_Callback.m File Reference

A callback function for the handles.ib_channelMixerTable table. More...

Functions

function  ib_channelMixerTable_Callback (hObject, eventdata, handles, type)
 A callback function for the handles.ib_channelMixerTable table. More...
 

Detailed Description

A callback function for the handles.ib_channelMixerTable table.

Function Documentation

function ib_channelMixerTable_Callback (   hObject,
  eventdata,
  handles,
  type 
)

A callback function for the handles.ib_channelMixerTable table.

Duplicates action of the Menu->Image->Color channels entry

Parameters
hObjecthandle of a calling object
eventdatanot used
handleshandle structure of im_browser, not used because it is updated by the guidata function
typea string that defines required action
  • 'insert', insert an empty color channel to the specified position
  • 'copy' - copy color channel to a new channel, same as Menu->Image->Color channels->Copy channel...
  • 'invert' - invert color channel, same as Menu->Image->Color channels->Invert channel...
  • 'swap' - swap two color channels, same as Menu->Image->Color channels->Swap channels...
  • 'delete' - delete color channel, same as Menu->Image->Color channels->Delete channel...
  • 'set color' - set color to show the channel when the LUT mode (View Settings->Colors->LUT) is enabled.
Required fields of handles:

Examples:

ib_channelMixerTable_Callback(handles.channelMixerTable, NaN, NaN, 'invert'); // invert the selected channel
ib_channelMixerTable_Callback(handles.channelMixerTable, NaN, NaN, 'set color'); // set color for the selected channel

References channelMixerTable_CellSelectionCallback(), ib_do_backup(), and updateGuiWidgets().

Referenced by imbrowser>im_browser_OpeningFcn().

Here is the call graph for this function:

Here is the caller graph for this function: