Originally posted by: CycloWizard
Matlab is very fast for image processing in almost every case. How exactly are you doing this? The algorithm is likely the cause of the poor performance. If you are using a loop rather than the built-in array functionality, then that is probably the reason.
Maybe I should have asked this the first time, but why would you ever do this?Originally posted by: TecHNooB
Turns out the slowness was because matlab was running out of memory because my matrix was too big 🙁
I was basically taking the DCT of an N by N block. Moving it over by one pixel. Repeat until the entire image matrix is 'swept'. And storing every block into a row of a super huge matrix.
Originally posted by: CycloWizard
Maybe I should have asked this the first time, but why would you ever do this?Originally posted by: TecHNooB
Turns out the slowness was because matlab was running out of memory because my matrix was too big 🙁
I was basically taking the DCT of an N by N block. Moving it over by one pixel. Repeat until the entire image matrix is 'swept'. And storing every block into a row of a super huge matrix.
Originally posted by: TecHNooB
Originally posted by: CycloWizard
Maybe I should have asked this the first time, but why would you ever do this?Originally posted by: TecHNooB
Turns out the slowness was because matlab was running out of memory because my matrix was too big 🙁
I was basically taking the DCT of an N by N block. Moving it over by one pixel. Repeat until the entire image matrix is 'swept'. And storing every block into a row of a super huge matrix.
Detecting JPEG copy-move via block comparison. Basically, take a JPEG image, copy a part of it and move it somewhere else in the image. I'm writing a simple code to detect these things. Oh, the extraction of blocks and storing into a 2-D matrix is for row-comparison purposes. I probably could write a version that does not save the block information (although saving all of it would be more convenient).