function gtCheckSegmentation(imnum,parameters,clims)
 
   %querie1 = sprintf('select XIndex,YIndex from %sdifblobdetails where ZIndex=%d',parameters.acq.name,imnum);
   querie2 = sprintf('select difspotID,BoundingBoxXOrigin,BoundingBoxYOrigin from %sdifspot where StartImage<=%d AND EndImage>=%d', parameters.acq.name, imnum, imnum);
   
   full=gtGetFullImage(imnum,parameters);
   spots=zeros(parameters.acq.ydet,parameters.acq.xdet);
   
%  [x,y]=mym(querie1);
%    for i=1:length(x)
%      spots(y(i),x(i))=1;
%    end	 
   mym(querie2)
   [difspotID, bb(:,1), bb(:,2)] = mym(querie2)
   
   
   
   
   for i=1:length(difspotID)
       spot  = gtGetSummedDifSpot(difspotID(i),parameters,true);
       spots = gtPlaceSubVolume(spots, spot, [bb(i,2)-1, bb(i,1)-1, 0],1,'assign');
   end
   
   cont=bwperim(spots);
   cont=bwmorph(cont,'dilate');
   cont=double(cont);
   
   
%cont(:,:,2:3)=0;
   
   full=mat2gray(full,clims);
   
   figure(1);
   h=imshow(full-cont,clims);
   
%    set(gcf,'Renderer','OpenGL');
%    hold on;
%    imshow(cont);
%    hold off;
%    set(h,'Alphadata',0.3);
   
   
end   
   
  

