Test block mode limit.
(self)
| 1133 | self.assertGreater(rmse_test, rmse_ref) |
| 1134 | |
| 1135 | def test_blockmode_limit(self) -> None: |
| 1136 | ''' |
| 1137 | Test block mode limit. |
| 1138 | ''' |
| 1139 | input_path = Path('./Test/Images/Small/LDR-RGBA/ldr-rgba-00.png') |
| 1140 | image_dec = self.get_tmp_image_path('LDR', 'decomp') |
| 1141 | |
| 1142 | # Compute the basic image without any channel weights |
| 1143 | cmd = [ |
| 1144 | self.binary, '-tl', |
| 1145 | input_path, image_dec, '4x4', '-medium'] |
| 1146 | |
| 1147 | self.exec(cmd) |
| 1148 | rmse_ref = sum(self.get_channel_rmse(input_path, image_dec)) |
| 1149 | |
| 1150 | cmd += ['-blockmodelimit', '25'] |
| 1151 | self.exec(cmd) |
| 1152 | rmse_test = sum(self.get_channel_rmse(input_path, image_dec)) |
| 1153 | |
| 1154 | # RMSE should get worse (higher) if we reduce search space |
| 1155 | self.assertGreater(rmse_test, rmse_ref) |
| 1156 | |
| 1157 | def test_refinement_limit(self) -> None: |
| 1158 | ''' |
nothing calls this directly
no test coverage detected