@nifti_out<EOL>def div_img(img1, div2):
if is_img(div2):<EOL><INDENT>return img1.get_data()/div2.get_data()<EOL><DEDENT>elif isinstance(div2, (float, int)):<EOL><INDENT>return img1.get_data()/div2<EOL><DEDENT>else:<EOL><INDENT>raise NotImplementedError('<STR_LIT>'<EOL>'<STR_LIT>'.format(type(img1),<EOL>img1,<EOL>type(div2),<EOL>div2))<EOL><DEDENT>
Pixelwise division or divide by a number