Wolfram Research

ImageSplitCompare

Contributed by: Jon McLoone

Source Notebook

A dynamic interface for comparing two images

ResourceFunction["ImageSplitCompare"][img1,img2]

shows img1 composed with img2 with a draggable divider.

ResourceFunction["ImageSplitCompare"][Dynamic[var],img1,img2]

shows img1 composed with img2 with a draggable divider at position var.

ResourceFunction["ImageSplitCompare"][Dynamic[var],img1,img2, size, method]

shows img1 composed with img2 with a draggable divider at position var, using size and method to conform the images first.

Examples

Basic Examples

Compare two images. Click and drag the divider line to change the split:

In[1]:=
CloudGet["https://www.wolframcloud.com/objects/ea85cff2-10ea-46c1-8a6a-32c59724db16"] (* Evaluate this cell to copy the example input from a cloud object *)
Out[1]=

Scope

The position of the divider line can be controlled and retrieved using:

In[2]:=
CloudGet["https://www.wolframcloud.com/objects/8be51ebc-d9dc-46fa-88f9-e6784b49e472"] (* Evaluate this cell to copy the example input from a cloud object *)
Out[2]=

ImageSplitCompare takes the same arguments as ConformImages:

In[3]:=
CloudGet["https://www.wolframcloud.com/objects/e929b828-ec1a-4f0e-bd63-fa65a97d7837"] (* Evaluate this cell to copy the example input from a cloud object *)
Out[3]=

Options

Use “ImageMarker” to place a visual marker on the interactive join line:

In[4]:=
CloudGet["https://www.wolframcloud.com/objects/80d10c37-53f3-43e0-853b-64a97e527fe1"] (* Evaluate this cell to copy the example input from a cloud object *)
Out[4]=

Use Appearance to change the direction of interactivity:

In[5]:=
CloudGet["https://www.wolframcloud.com/objects/d4bf271b-6f34-4a36-90e2-5318618cd7e1"] (* Evaluate this cell to copy the example input from a cloud object *)
Out[5]=
In[6]:=
CloudGet["https://www.wolframcloud.com/objects/7685c95d-a138-4420-91ff-de228d8ab9b1"] (* Evaluate this cell to copy the example input from a cloud object *)
Out[6]=

Resource History