Pattern recognition based on soft boundaries : a proposal applied to tree species identification from texture in trunk images