1 | initial version |
You should allocate hsv_base images before using the cvtColor function. Also, don't use src_base in your loop, but directly image (or do a deep copy with the clone method) otherwise, you probably don't have what you expected in src_base.