Skip to content

Bug in function cv::cuda::flip #2895

@SimonRodrigue43

Description

@SimonRodrigue43

@tomoaki0705 The flip operation will be done inplace when source and destination images have same refcount:

bool isInplace = (src.data == dst.data) || (src.refcount == dst.refcount);

This line of code should be:
bool isInplace = (src.data == dst.data) && (src.refcount == dst.refcount);

We tested this fix and it works.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions