Question about method read_data_to_ram
buaacyw opened this issue · comments
Yiwen Chen commented
Wei Jiang commented
Hi, self.image
and self._image
are two different variables. self._image
is the actual storage of the data, self.image
is an on-demand property.
In this code, we first call the property to read the image, and store in to self._image
variable, so it is in the memory.
Wei Jiang commented
You can simplify it to
self._image = self.image
Yiwen Chen commented
Thanks! I understand!