Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #1308
In previous version of submodule
slic
, there was invalid access to element of minus index ofstd::vector
.This caused segmentation fault in
jsk_perception/slic_super_pixels
node during destructor of that vector was called.Probably this is why
slic_super_pixels
fails when large image is used (reported in #1308 ).I updated
![slic_super_pixels0](https://user-images.githubusercontent.com/22876283/65293719-26dbe280-db97-11e9-8549-012202e9e955.png)
![slic_super_pixels1](https://user-images.githubusercontent.com/22876283/65293720-27747900-db97-11e9-97b5-abe1a802ba48.png)
![slic_super_pixels2](https://user-images.githubusercontent.com/22876283/65293722-27747900-db97-11e9-9cb8-a898d0d2a81d.png)
slic
to the latest commit and confirmed it works with large image.i.e.
jsk_perception/sample/kiva_pod_image_color.jpg
(size is 1920 x 1080)Thanks @pazeshun