Doing region of interest correctly

Signed-off-by: Luiz Carlos Cavalcanti <cavalcanti.luiz@gmail.com>