function [section]=ichunk(Q, mask);

[masknum, levels, boundstepsize]=maskdecode(mask);

%case statment for later

midpoint=round(boundstepsize/2);

lower=Q-0.5*levels;
section=lower.*boundstepsize+midpoint;
