Have you set interpolation to NN also when viewing the images in CheckReg or Display (remember to move the crosshair after changing the interpolation type)? Otherwise it can maybe be necessary to change the datatype in imcalc.
Best
Torben
> On 6 Mar 2017, at 17.36, Jérôme Redouté <[log in to unmask]> wrote:
>
> Hi All,
>
> we are trying to process labelled images using imcalc, but after processing, the resulting image does not keep integer values.
>
> here is an example of the function we use: i1 .* (i1>=0)
>
> We use Nearest neighbour interpolation
>
> resulting voxels have values of, for example 84.00009.
>
> Any suggestions on how to keep integer values?
>
> Thanks
>
> Jerome
>
>
>
>
>
> --
> ==================================================================
> Jérôme Redouté
> Ph.D. - Ingénieur de Recherche - Université Claude Bernard - Lyon1
> CERMEP - Imagerie du vivant
> 59 Bd Pinel. 69677 Bron - FRANCE
> tel : 33 (0)4 72 68 86 18 (bureau)
> tel : 33 (0)4 72 68 86 00 (standard)
> fax : 33 (0)4 72 68 86 10
> ==================================================================
|