Enable the writing of the sampled patches during dictionary learning.