mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-05 01:32:40 +02:00
GPy/util/visualize.py: fixed conflict.
This commit is contained in:
parent
68041174cd
commit
98a2adc7d9
1 changed files with 0 additions and 11 deletions
|
|
@ -217,16 +217,11 @@ class image_show(data_show):
|
||||||
self.axes.figure.canvas.draw() # Teo - original line: plt.show()
|
self.axes.figure.canvas.draw() # Teo - original line: plt.show()
|
||||||
|
|
||||||
def set_image(self, vals):
|
def set_image(self, vals):
|
||||||
<<<<<<< HEAD
|
|
||||||
dim = self.dimensions[0] * self.dimensions[1]
|
dim = self.dimensions[0] * self.dimensions[1]
|
||||||
self.vals = np.reshape(vals[0,dim*self.selectImage+np.array(range(dim))], self.dimensions, order='F')
|
self.vals = np.reshape(vals[0,dim*self.selectImage+np.array(range(dim))], self.dimensions, order='F')
|
||||||
=======
|
|
||||||
self.vals = np.reshape(vals, self.dimensions, order='F').copy()
|
|
||||||
>>>>>>> 47a7df9756e47ba775eb04c72e41a31933013ea4
|
|
||||||
if self.transpose:
|
if self.transpose:
|
||||||
self.vals = self.vals.T.copy()
|
self.vals = self.vals.T.copy()
|
||||||
if not self.scale:
|
if not self.scale:
|
||||||
<<<<<<< HEAD
|
|
||||||
self.vals = self.vals
|
self.vals = self.vals
|
||||||
if self.invert:
|
if self.invert:
|
||||||
self.vals = -self.vals
|
self.vals = -self.vals
|
||||||
|
|
@ -242,12 +237,6 @@ class image_show(data_show):
|
||||||
if not self.palette == []: # applying using an image palette (e.g. if the image has been quantized)
|
if not self.palette == []: # applying using an image palette (e.g. if the image has been quantized)
|
||||||
self.vals = Image.fromarray(self.vals.astype('uint8'))
|
self.vals = Image.fromarray(self.vals.astype('uint8'))
|
||||||
self.vals.putpalette(self.palette) # palette is a list, must be loaded before calling this function
|
self.vals.putpalette(self.palette) # palette is a list, must be loaded before calling this function
|
||||||
=======
|
|
||||||
self.vals = self.vals.copy()
|
|
||||||
#if self.invert:
|
|
||||||
# self.vals = -self.vals
|
|
||||||
>>>>>>> 47a7df9756e47ba775eb04c72e41a31933013ea4
|
|
||||||
|
|
||||||
|
|
||||||
class mocap_data_show(data_show):
|
class mocap_data_show(data_show):
|
||||||
"""Base class for visualizing motion capture data."""
|
"""Base class for visualizing motion capture data."""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue