vDataSet = vImarisApplication.mDataSet.Clone;
vExtendsMax = [vDataSet.mExtendMaxX,vDataSet.mExtendMaxY,vDataSet.mExtendMaxZ];
maxZ = vExtendsMax(1,3);
spots_detect = data;
vSpots=vImarisApplication.mFactory.CreateSpots;
aPositionsXYZ=[spots_detect(:,2) spots_detect(:,1) spots_detect(:,3)];
tt=length(spots_detect (:,1));
aIndicesT = zeros(tt,1);
aRadii=0.5*ones(tt,1);
vSpots.Set(aPositionsXYZ,aIndicesT,aRadii);
vSpots.SetColor(0.0, 1.0, 1.0, 0.0);
vImarisApplication.mSurpassScene.AddChild(vSpots);