A novel method to detect foreground region using morph ological operations with block based enhancement for underwater images