mirror of
https://github.com/13hannes11/situr.git
synced 2024-09-03 20:50:58 +02:00
implement application of transformations
This commit is contained in:
@@ -63,8 +63,8 @@ class SituImage:
|
|||||||
return self.data
|
return self.data
|
||||||
|
|
||||||
def apply_transformations(self):
|
def apply_transformations(self):
|
||||||
# TODO: implement
|
for i, transformation in enumerate(self.channel_transformations):
|
||||||
pass
|
transformation.apply_transformation(self, i)
|
||||||
|
|
||||||
def set_channel_transformation(self, channel: int, transformation: ChannelTransform):
|
def set_channel_transformation(self, channel: int, transformation: ChannelTransform):
|
||||||
self.channel_transformations[channel] = transformation
|
self.channel_transformations[channel] = transformation
|
||||||
|
|||||||
@@ -25,16 +25,17 @@ class Tile:
|
|||||||
self.round_transformations.append(IdentityRoundTransform())
|
self.round_transformations.append(IdentityRoundTransform())
|
||||||
|
|
||||||
def apply_transformations(self):
|
def apply_transformations(self):
|
||||||
# TODO: implement (first apply channel transformations then round transformations)
|
# first apply channel transformations then round transformations
|
||||||
pass
|
self.apply_channel_transformations()
|
||||||
|
self.apply_round_transformations()
|
||||||
|
|
||||||
def apply_channel_transformations(self):
|
def apply_channel_transformations(self):
|
||||||
# TODO: implement
|
for i in range(self.get_round_count()):
|
||||||
pass
|
self.images[i].apply_transformations()
|
||||||
|
|
||||||
def apply_round_transformations(self):
|
def apply_round_transformations(self):
|
||||||
# TODO: implement
|
for round, transformation in enumerate(self.round_transformations):
|
||||||
pass
|
transformation.apply_tranformation(self, round)
|
||||||
|
|
||||||
def set_round_transformation(self, round, transformation: RoundTransform):
|
def set_round_transformation(self, round, transformation: RoundTransform):
|
||||||
self.round_transformations[round] = transformation
|
self.round_transformations[round] = transformation
|
||||||
|
|||||||
Reference in New Issue
Block a user