added obtain_from_generic method for dense features, fixes octave jade example