Description
|
Download
|
API
|
API
|
Manual
|
Example
This is a trivial example that shows how to use IceImarisConnector in an Imaris XTensions. For the sake of clarity, no checks are performed.
function exampleXT(aImarisApplicationID) % % <CustomTools> % <Menu> % <Item name="Example XT" icon="Matlab" tooltip="Just an example."> % <Command>MatlabXT::exampleXT(%i)</Command> % </Item> % </Menu> % </CustomTools> % % This is a trivial XTension example using ImarisConnector % It projects dataset and spots within a given z range and creates a plot % Create an ImarisConnector object conn = IceImarisConnector(aImarisApplicationID); % Range to consider z0 = 10; z = 15; % Get the 3D volume from channel 0 and timepoint 0 stack = conn.getDataVolume(0, 0); % Create a maximum intensity projection (MIP) mip = max(stack(:, :, z0 : z), [], 3); % This assumes that the selected object in the Surpass Scene is a Spots object vSpots = conn.getSurpassSelection(); % Get the spot positions pos = vSpots.GetPositionsXYZ(); % Convert the coordinates to voxel positions posV = conn.mapPositionsUnitsToVoxels(pos); % We only consider spots that are between planes z0 and z posV(posV(:, 3) < z0 | posV(:, 3) > z, :) = []; % Project and plot the spots on the MIP figure; imshow(mip, []); hold on; plot(posV(:, 2), posV(:, 1), 'ro');
Will follow soon.