Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.1K Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

ImageDifference and ImageAlign

POSTED BY: J. Leko
2 Replies
Posted 2 years ago

Here's what I think is going on. First, to do the ImageAlign Mathematica is automatically setting an alpha channel. Second, ImageDifference is designed to work with masks, and for an image with an alpha channel, everything that is non-transparent becomes the mask. So, I think what you need to do is explicitly remove the alpha channel:

ImageDifference[withPill, RemoveAlphaChannel[ImageAlign[withPill, withoutPill]]]

(I've changed the name of the images so that I could keep them straight in my head. Also, this is just my best guest, I'm not an expert on how all of the image processing functions are designed to work.)

POSTED BY: Eric Rimbey
POSTED BY: J. Leko
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard