function [] = segmlowresdid(folder,nmax,segmch)

for i = 10 : nmax
    
    % image to load
    pathload = [folder '/' 'stack' int2str(i)];
    D = load(pathload);
    im = D.im;
    h = D.h;
    h(isnan(h)) = [];
    imsegm = im(:,:,:,segmch);
    minv = 0.1;
    maxv = 50;
    prmin.method = 'adth';
    prmin.adth.adth = 0.6;
    [cellbw,wat,imsegmout,prmout] = cellsegm.segmct(imsegm,minv,maxv,'prm',prmin);
    
    showall(imsegm,cellbw)
    
    
end;



