Is there an explanation of what DE9IM is somewhere?
Sure, that was in the post you replied to ;-)
>
>
> Unfortunately a matrix or a mask should be able
to contain at least 5 different "digits" (*, T, F, 1,
2). See: http://en.wikipedia.org/wiki/DE-9IM