Page MenuHomePhabricator

Initialize output of SurfaceToImageFilter with uchar if binary is requested
Closed, ResolvedPublic

Description

By now, output is initialized with input pixel type even if output is requested to be binary -> Huge waste of memory;
Solution: Init output with unsigned char when SetOutputToBinary is turned on.

Event Timeline

Added change request;

Changes also help in 4D support of (by now internal) SurfaceToImage bundle;

[SVN revision 25550]
FIX (#5077): Initialize output of SurfaceToImageFilter with uchar if binary is requested; added test;

[SVN revision 25553]
COMP (#5077): Allow unknown pixel type

[SVN revision 25556]
COMP (#5077): Unix does not seem to resolve pixel type.. (??)

Test only works on Windows. PixelType is always returned as "h" on Linux.
-> #ifdef WIN32; closed.