Image coding based on zerocrossing and energy information