Compare two 3d image

Is there a way to compare two nifti images, to find the difference in them ?

There are many tools in Slicer that can help you in comparing volumes.

You can also set one volume as foreground, the other as background and fade between them (Ctrl + Mouse-click-and-drag up/down).

You may find “Layer Reveal Cursor” in Compare Volumes useful.

If you segment one of the image with a simple global thresholding in Segment Editor module and show that over the other image then you get a very clear view of what moved and how much. If you segment objects of interest, you can compute quantitative metrics about their displacement by using Segment Comparison module in SlicerRT extension.

You may register the two volumes (using “General Registration (BRAINS)” module or SlicerElastix extension) and visualize the resulting transform using Transforms module.

when I compare between these two images I want obtain a result as histogram form or a table or …
that shows where is exactly the difference between these two images

To see where, what directions, and how much structures have moved perform spatial registration and use Transforms module to visualize the displacement.

For quantitative analysis, you can segment the structures of interest and use Segment comparison module in SlicerRT extension.