borevitzlab / timestreamlib

DEPRECATED. Please use the current version of the TimeStream tools at https://gitlab.com/appf-anu/pyts2.
https://gitlab.com/appf-anu/pyts2
GNU General Public License v3.0
7 stars 4 forks source link

Add a resizeAndWrite component #139

Closed Joelgranados closed 9 years ago

Joelgranados commented 9 years ago

When we use the resizing pipe component, it always passes the resized image. We should give the option to the user to leave the size as is for the pipeline and save a resized version.

for reference https://github.com/borevitzlab/timestreamlib/pull/138/files#diff-7f25bbd35d62ff5e458c75ec35904540R319

Joelgranados commented 9 years ago

This is tricky as the resize component does not actually write the image. This feature needs to be added together with a way to differentiate between "main" components that change the image permanently and "output" components that change the image just to output it.

Joelgranados commented 9 years ago

We can add a pipecomponent that is resizeAndWrite. It would be one component that will house both resize code and write code (it could use the already existing components) in one component. This will give the pipeline the ability to output to a resized image without changeing the size of the image going forward.

Joelgranados commented 9 years ago

This is done in the latest commit on my branch