function show_rects_in_primary(ref)
    data=get(groot,'UserData');
    for idx=1:length(data.rect)
        rect=data.rect(idx);
        if rect_in_cv_hull(rect,ref)
            display_rect_in_ref(9,rect,ref);
        end
    end
end