While reading the book "Image Processing, Analysis and Machine Vision", I use the book "Python Image Processing Practice" as a code-assisted reference book.During the reading process, I found that some codes in "Python Image Processing Practice" had some mismatches in actual use, as well as some findings that I thought were useful, so I made some notes to help me remember.
The version of the book "Python Image Processing Practice" in my hand is: the first edition in December 2020, and the second printing in Hebei in January 2021.
ic = imread_collection(ic = imread_collection(['images/69015.jpg','images/210088.jpg', 'images/cat1.png'])imshow_collection(ic)show()
lena.flags.writable=True
, which will report cannot set WRITEABLE flag to True of this array
.A valid solution is to construct a new object based on the original lena object.lena = np.array(lena)
.