It should take in an optional Rect2 to compare a part of two images.
It should make sure both contain the Rect2 so that we don't go out of bounds
When the Rect2 is not supplied then it should make sure that both images are the same size. If you need to compare a smaller image to a section of a larger image you would just pass the Rect2 for the smaller image sieze.
Could maybe take two Rect2s, one for image1 and another for image2. In that case the method should verify the Rect2s are the same size.
This little function could be added to Gut with some modifications:
Rect2
to compare a part of two images.Rect2
so that we don't go out of boundsRect2
is not supplied then it should make sure that both images are the same size. If you need to compare a smaller image to a section of a larger image you would just pass theRect2
for the smaller image sieze.Rect2
s, one for image1 and another for image2. In that case the method should verify theRect2
s are the same size.