A novel binary image representation algorithm by using NAM and coordinate encoding procedure and its application to area calculation