I want to compare multiple images with the reference image and add indication marks on the image if it is different from the reference. Could you please help me making this as a JSL code?
How are these images stored, please? Is the intention to compare two or more files that might or might not be identical? Or is the idea simply to try to locate any regions of two JPEGs that look different - for example a couple of stills from a CCTV camera which would look very similar most of the time, except say when one of them shows someone walking across the shot? I've no idea how one might tackle a problem like this, but it sounds an interesting one - so can you supply more details?
Have no idea of what "JSL code" is, but I think if you want to add mark on image, maybe you need some image annotating code. By the way, could you look at Dodo's suggestion, I think he may probably give you the solution on image processing.
In JSL, use New Image to create an image object and the Get Pixels message to convert the image into a matrix of pixels. Then you can compare matrices to find differences (which can be easy or hard depending on the kinds of differences you want to detect). To show the differences you could convert a difference matrix in an image or add Annotation Boxes on a view of one of the input images.
I just came across your question. I wrote a JSL utility that I think does just what you are asking for. It take two images, compares them, and displays the result as a new image. The resultant image shows gray-scale pixels between black and white, where black is no difference and white is the most difference. You could apply a scale factor to the difference so that minor differences are more noticeable. The script can be found on the in ImageDiff JSL. Let me know if you have any questions about it.
There are no labels assigned to this post.