Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Image Alteration

Subject: Image Alteration

From: Eric Diaz

Date: 16 Jul, 2011 23:47:28

Message: 1 of 3

Hi Matlab Community,

Problem:
I have a set of more than 2000 png images and each one of these images has a short line of alphanumeric characters (an ID) in different locations which I would like to remove from the images.

Question:
What is the best way to go about removing these from each image without manually editing each image?

I was thinking of creating a small snapshot of the alphanumeric characters, and then matching that small snapshot to whatever region in the image contains the same "snapshot" content. I was thinking this could be done by scanning up & down the image with the snapshot & then as soon as the region was recognized, each pixel of that region could be replaced by a certain color.

I was also thinking that optical character recognition might work, but it seems to me that this would be excessive for such a simple task.

Any other ideas?

Thanks in advance,

Eric

Subject: Image Alteration

From: ImageAnalyst

Date: 16 Jul, 2011 23:58:51

Message: 2 of 3

If your template and the embedded text are the same, you might be able
to use normxcorr2() in the Image Processing Toolbox.

Subject: Image Alteration

From: Eric Diaz

Date: 17 Jul, 2011 03:13:09

Message: 3 of 3

Hi ImageAnalyst,

Thanks for your help. Right, that was something like I had in mind because the template and embedded text would be the same. It's just the embedded text changes position in the set of images.

I'll take a look at normxcorr. thanks

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us