Hi Raymond,
You need to create a CellSelection callback
Variable indices contains the index of selected row and column.
What might be a better way to process your image is to have the toggle button on/off, that will process your image if it's on, and do nothing if it's off.
function UITableCellSelection(app, event)
indices = event.Indices;
if app.ToggleButton.Value
filepath = app.UITable.Data{indices(1),indices(2)}
processImage(app, filepath)
end
end
Otherwise, you could create a property that saves last selection and with the press of a button it would process file related to it.
function UITableCellSelection(app, event)
app.Last_Selection = event.Indices;
end
ProcessImage(app)
Best Answer