LOAD_COLOR images/scene_l.ppm images/scene_r.ppm
SET disp_range -15 0 0 0         # x_min y_min x_max y_max

SET iter_max 3

# Regularization parameter. AUTO computes only an approximate
# value. Should be tuned to get the best result.
# If results look too noisy try increasing lambda
# If results look oversmoothed try decreasing lambda
SET lambda AUTO

#############################################################
# Other parameters that can be changed:
#############################################################
#SET data_cost ?          # L1 or L2 (default is L2)
#SET I_threshold ?        # intensity threshold - switches between
                          # lambda1 and lambda2 (default is 5)
#SET interaction_radius ? # (default is 1 - Potts model)
#SET lambda1 ?            # (default is 3*lambda)
#SET lambda2 ?            # (default is lambda)
#SET K ?                  # (default is 5*lambda)
#############################################################

# Running the algorithm
KZ1

# Saving results
SAVE_X kz1.pgm
SAVE_X_SCALED kz1.ppm

# Computing occlusions
CROSS_CHECK

# Saving results with occlusions
SAVE_X kz1_occ.pgm
SAVE_X_SCALED kz1_occ.ppm

