Skip to content

fixes for target image size same as the source image#30

Open
rohitdavas wants to merge 1 commit intofbessho:masterfrom
rohitdavas:master
Open

fixes for target image size same as the source image#30
rohitdavas wants to merge 1 commit intofbessho:masterfrom
rohitdavas:master

Conversation

@rohitdavas
Copy link
Copy Markdown

  1. docstring that explains the arguments.
  2. mask fixing if mask is not uint8. or 3 dim.
  3. np.bool deprecated. and removed in numpy. suggestion is to use bool. updated with that.
  4. when target_img is of same size as the source img, there was index overflow in diagonal that happens sometimes. created a bound check for the diagonal update.

atleast the current api would work for the same size. for the target image less than source image, user needs to take care, as reizing could produce skew.

1. docstring that explains the arguments.
2. mask fixing if mask is not uint8. or 3 dim.
3. np.bool deprecated. and removed in numpy. suggestion is to use bool. updated with that.
4. when target_img is of same size as the source img, there was index overflow in diagonal that happens sometimes. created a bound check for the diagonal update.

atleast the current api would work for the same size. for the  target image less than source image, user needs to take care, as reizing could produce skew.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant