The SiliconSensor class uses a rather large amount of memory when the postage stamp is large. Proportional to the number of pixels, as you might imagine. However, once it's done with the large image and goes on to smaller postage stamps, it doesn't release that memory. This PR lets those vectors release the allocated memory whenever the target image size decreases. It also does the same with the _delta image -- releasing the memory when it gets smaller.
The SiliconSensor class uses a rather large amount of memory when the postage stamp is large. Proportional to the number of pixels, as you might imagine. However, once it's done with the large image and goes on to smaller postage stamps, it doesn't release that memory. This PR lets those vectors release the allocated memory whenever the target image size decreases. It also does the same with the
_delta
image -- releasing the memory when it gets smaller.