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

to move information between the layers. More...

Functions

function  ib_moveLayers (hObject, eventdata, handles, obj_type_from, obj_type_to, layers_id, action_type)
 to move information between the layers. More...
 

Detailed Description

to move information between the layers.

Function Documentation

function ib_moveLayers (   hObject,
  eventdata,
  handles,
  obj_type_from,
  obj_type_to,
  layers_id,
  action_type 
)

to move information between the layers.

for example, to move selection to mask, or selection to material of the model

Parameters
hObjecthandle of a calling object
eventdatanot used
handleshandle structure of im_browser, not used because it is updated by the guidata function
obj_type_fromname of a layer to get data, 'selection', 'mask', or 'model'
obj_type_toname of a layer to set data, 'selection', 'mask', or 'model'
layers_ida string
  • '2D' - 2D mode, move only the shown slice [y,x]
  • '3D' - 3D mode, move 3D dataset [y,x,z]
  • '4D' - 4D mode, move 4D dataset [y,x,z,t]
action_typea type of the desired action
  • 'add' - add mask to selection
  • 'remove' - remove mask from selection
  • 'replace' - replace selection with mask
Required fields of handles:

Examples:

ib_moveLayers(handles.updatefilelistBtn, NaN, NaN, 'selection', 'mask', 'add'); // add selection to mask
ib_moveLayers(handles.updatefilelistBtn, NaN, NaN, 'selection', 'mask', 'remove'); // remove selection from mask

References ib_do_backup(), ib_getDataset(), ib_getSlice(), ib_setDataset(), and ib_setSlice().

Referenced by im_browser_WindowKeyPressFcn(), imbrowser>im_browser_OpeningFcn(), imbrowser>menuMask2Sel_Callback(), imbrowser>menuSelection2Mask_Callback(), and selectionButton_Callback().

Here is the call graph for this function:

Here is the caller graph for this function: