View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002899 | CCdciel | General | public | 26-03-07 12:37 | 26-04-11 17:25 |
| Reporter | han | Assigned To | Patrick Chevalley | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | resolved | Resolution | fixed | ||
| Summary | 0002899: Faster TIFF unit | ||||
| Description | For ASTAP I have developped a TIFF unit which can save/load monochrome and colour 16 and 32 bit float TIFF files. The advantage using this unit for CCDCiel would be that it is faster then current FCL image (and handle 32 bit but that would not be interesting for CCDCiel) Would you be interested in replacing FCL image (FPReadTiff, FPWriteTiff, FPTiffCmn) in cu_fits? See attached unit_tiff. If so I could work on it. cs, Han | ||||
| Tags | No tags attached. | ||||
|
|
|
|
|
Yes this can be interesting. This is to replace SaveAstroTiff in cu_fits.pas ? at the moment it run the writer in a separate thread because of the low performance of the FCL, maybe this is no more necessary. |
|
|
Yes my main intention is replacement for SaveAstroTiff. It could also replace BGRAReadTiff but my implementation can not handle thumbnails or multiple images. But it can read 32 bit float TIFF's (Not very usefull for CCDCiel I assume). I will first try to update SaveAstroTiff. |
|
|
Attached the updated cu_fits.pas and the new cu_tiff.pas. I assumed the tiff file is always 16 bit I used in the unit cu_tiff only the 16 bit tiff writer to keep the final executable small. 8 and 32 bit writers are also available Compression is set fixed at minimum Then it is pretty fast. For reading tiff, I also tried to update the procedure PictureToFits, but that procedure is also used for png, jpeg and so on. That would probably require a modification in Tf_main.LoadPictureFile. That is more effort and I'm not sure if that is wished or beneficial. |
|
|
Thank you Han, it work really fast! Yes, it always save as 16 bit, no need for other format. Reading TIFF is not a priority, this is only used for a single file from the File / Open menu so performance is not important here. I commit your change: https://github.com/pchev/ccdciel/commit/35c78bc22b58f25515c60833e431bfd92ce22815 |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 26-03-07 12:37 | han | New Issue | |
| 26-03-07 12:37 | han | File Added: unit_tiff.zip | |
| 26-03-07 15:07 | Patrick Chevalley | Note Added: 0009656 | |
| 26-03-07 21:07 | han | Note Added: 0009658 | |
| 26-03-29 15:46 | han | Note Added: 0009683 | |
| 26-03-29 15:46 | han | File Added: new_tiff_writer_v1.zip | |
| 26-03-30 13:05 | Patrick Chevalley | Note Added: 0009690 | |
| 26-04-11 17:25 | Patrick Chevalley | Assigned To | => Patrick Chevalley |
| 26-04-11 17:25 | Patrick Chevalley | Status | new => resolved |
| 26-04-11 17:25 | Patrick Chevalley | Resolution | open => fixed |