Write the header to a result CSV file. Args: writer: The CSV writer.
(writer)
| 203 | |
| 204 | @staticmethod |
| 205 | def _save_header(writer) -> None: |
| 206 | ''' |
| 207 | Write the header to a result CSV file. |
| 208 | |
| 209 | Args: |
| 210 | writer: The CSV writer. |
| 211 | ''' |
| 212 | row = [ |
| 213 | 'Image Set', |
| 214 | 'Block Size', |
| 215 | 'Name', |
| 216 | 'PSNR', |
| 217 | 'Total Time', |
| 218 | 'Coding Time', |
| 219 | 'Coding Rate' |
| 220 | ] |
| 221 | |
| 222 | writer.writerow(row) |
| 223 | |
| 224 | def _save_record(self, writer, record: Record) -> None: |
| 225 | ''' |