extract window with filling edge values
merged