Cannot use OpenMV function "get_similarity()" or "difference()"

Using either of the functions causes crashing on latest firmware. Are there any working code examples for the MAIX GOs using these functions? Thanks!