pyimreg / python-register

Linear and non-linear image registration methods, using scipy and numpy.
Other
62 stars 34 forks source link

Encapsulating image class #4

Closed nfaggian closed 13 years ago

nfaggian commented 13 years ago

The way that coordinates are passed around is messy, it makes more sense to bundle the image data and coordinates together.

We should define an image class and get rid of the grid/coordinates class.

IMHO we should define an image as:

A user should be able to define an image and its coordinates. If coordinates are not defined then they should be inferred from the properties of the image data. (spacing=1, domain=shape, coords=meshgrid).

nfaggian commented 13 years ago

How do people do this generally - will have a look at the implementation in ITK.

I think pairs of coordinates are required - world coordaintes and "screen" or data coordinates are needed.

nfaggian commented 13 years ago

Made some progress on this - decided to define a "RegisterData" class - examples to come.