what should you do to add additional coins in this image?
Mostrar comentarios más antiguos
Hey Guys, How you doing? Please after you generate A=imread('eight.tif'); from Matlab database, what should you do to add additional coins in this image? Please give me a complete code that works to add this additional coins in that image.
Thank you in advance,
Respuestas (2)
AJ von Alt
el 28 de En. de 2014
What are the constraints on the problem? Do you want to detect coins, copy them, and insert them into the image or do you just want to display an image with more coins?
If that is the case, then
B = repmat( A , 20 , 20 );
imshow(B);
should do nicely.
1 comentario
Moon Shadow
el 29 de En. de 2014
Image Analyst
el 28 de En. de 2014
0 votos
Manal, see my image segmentation tutorial: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862. It find the coins. Then see my attached demo for how to copy and paste a chunk of an image. If you're willing to work a little and combine those, you can get it done. I know you can do it.
9 comentarios
Moon Shadow
el 29 de En. de 2014
Walter Roberson
el 29 de En. de 2014
What error do you encounter? Which MATLAB version are you using? Do you have the Image Processing Toolbox ?
Image Analyst
el 29 de En. de 2014
I didn't get any errors. Are you sure you followed the directions in the message boxes?
Moon Shadow
el 29 de En. de 2014
Walter Roberson
el 29 de En. de 2014
What error do you encounter. Which version of MATLAB Student Version -- R2013a ? Have you installed the Image Processing Toolbox? It arrives with Student Version but is not installed by default.
Moon Shadow
el 29 de En. de 2014
Editada: Moon Shadow
el 29 de En. de 2014
Image Analyst
el 29 de En. de 2014
Editada: Image Analyst
el 29 de En. de 2014
How could you have gotten to that line, when the line 11 lines prior is
[rows2 columns2] = size(croppedImage)
and there is no way to get to the r2= line without going through the [rows2 line???? I think you must have modified my demo. Again, I copied and pasted and it ran fine. Attach your modified m-file so I can find out how you changed it to cause it not to work.
Are you sure you were always clicking in the upper left image, and you waited for the ginput crosshairs before clicking where to paste it?
Moon Shadow
el 30 de En. de 2014
Editada: Walter Roberson
el 30 de En. de 2014
Walter Roberson
el 30 de En. de 2014
You deleted the line
fontSize = 20;
that occurs early on in Image Analyst's code.
You deleted the '%' that occurs at the beginning of a comment line
% Paste it onto the original image
Because that % was missed, MATLAB skipped execution of everything between that line and the next command prompt.
Categorías
Más información sobre Images en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!