I have been developing an algorithm which reads and imports 2 different images (.jpg files) and undertakes calculations to output and write a third different image file.
At first when reading in the images I just used double() and then I started to using rgb2gray and finally it seemed to work when using im2double instead of just double.
Why do I need to use this code:
object = mmreader('train.mpg') frame1=read(object,1) frame1=rgb2gray(thisframe) frame1=im2double(thisframe)
Is this even correct what I have finally used?? Please help!
No products are associated with this question.
You define "frame1" three times, but you twice use "thisframe" without ever defining it.
object = mmreader('train.mpg'); frame1 = read(object,1); thisframe = rgb2gray(imdouble(frame1));