views:

50

answers:

1

Possible Duplicate:
How to reverse the color of a grayImage in matlab?

I want to convert between the following two images:

alt text

alt text

A: 

Assuming the entire image is just a boolean matrix A in Matlab, perform the negation ~A.

Pieter