ChunkingExport

class controllers.ChunkingExport

Bases: handle

CHUNKINGEXPORT - Splits the current dataset into a Z×X×Y tile grid and saves tiles to disk.

Each tile is saved as a separate image file. Labels (segmentation model) and mask layers can optionally be exported alongside the images.

Constructor Summary
ChunkingExport(mibModel, varargin)

CHUNKINGEXPORT - constructor.

Syntax:
obj = ChunkingExport(mibModel)
obj = ChunkingExport(mibModel, mibController, BatchOpt)
obj = ChunkingExport(mibModel, mibController, NaN)
Input Arguments:
  • mibModel - handle to MibModel

  • varargin{1} - (optional) handle to MibController

  • varargin{2} - (optional) BatchOpt struct or NaN (batch mode)

Usage:

Example 1:

obj.mibController.startController('controllers.ChunkingExport');
Property Summary
BatchOpt

cell array of listener handles

listener

handle to ChunkingExportGUI

mibModel
view

handle to MibModel

Method Summary
static ViewListner_Callback2(~, evnt)

VIEWLISTNER_CALLBACK2 - Guard: clean up listeners and return silently if view closed.

addCallbacks()

ADDCALLBACKS - Wire GUI widget callbacks.

chunkBtn_Callback(batchModeSwitch)

CHUNKBTN_CALLBACK - Perform the chop-and-export operation.

Syntax:
obj.chunkBtn_Callback()
obj.chunkBtn_Callback(batchModeSwitch)
Input Arguments:
  • batchModeSwitch - (optional) logical; true when called from batch mode

closeWindow()

CLOSEWINDOW - Close the dialog and clean up listeners.

dirEdit_Callback(hObject)

DIREDIT_CALLBACK - Validate or create the typed output directory.

helpBtn_Callback()

HELPBTN_CALLBACK - show documentation

returnBatchOpt(BatchOptOut)

RETURNBATCHOPT - Broadcast current BatchOpt for macro recording.

selectDirBtn_Callback()

SELECTDIRBTN_CALLBACK - Open a directory picker and update the output path.

updateBatchOptFromGUI(hObject)

UPDATEBATCHOPTFROMGUI - Sync a single widget change back to BatchOpt.

updateWidgets()

UPDATEWIDGETS - Refresh the GUI from the current dataset state.