intrinsic icon indicating copy to clipboard operation
intrinsic copied to clipboard

mask error!

Open qwspph opened this issue 6 years ago • 2 comments

hello, when i use "-m <mask_file>", there is an error in "decomposition.py", line 45, self.intensities[self.labels_nz]. "IndexError: index 816 is out of bounds for axis 1 with size 816" The error only come up when i use mask,can you help me? Thank u very much!

qwspph avatar Jan 07 '19 10:01 qwspph

Does the mask file have the same resolution as the input image?

seanbell avatar Jan 07 '19 16:01 seanbell

Does the mask file have the same resolution as the input image? Yes i did. I think the function "split_label_cluster()" in solver.py maybe has an error. When i commented out "new_to_old = new_to_old[new_to_old != -1]", line 387, the code run succeed. Another question:undering invariable params, if i use mask, the intrinsic result will be worse than without mask?

qwspph avatar Jan 08 '19 08:01 qwspph