A Comparative analysis of photospheric bright points in an active region and in the quiet sun