<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi everyone,<br><br>I would like to hear you about the possibility to create mask of N dimension to "scan" an image. The aim of this mask is to check for each pixel if its value is between the intervals confidence of the mask's pixels or not. Im looking for a function that will create a mask of the desired dimension of the user. For instance: 3x3, 5x5, 7x7, 11x11, etc. <br><br>if the scanned pixel is defined by (i,j)<br>the function should put all the values of the mask NxN at the position (i,j) into a list.<br><br>For now, I can manualy create mask of 3x3 and 5x5 by including the pixels (i-1,j-1) to (i+1,j+1) etc... in a list, but its getting complicated for 7x7 and bigger mask.<br><br>Thanks for your help, its really appreciated<br><br>Maxime Demers<br>Geomatics and Remote Sensing<br>University de Sherbrooke<br>                                               </body>
</html>