changing the pixel color in an image
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Busy Bee
il 17 Gen 2018
Risposto: Image Analyst
il 18 Gen 2018
I have a raster image and I have the coordinates of the shown point. I need to change the colour of the area occupied by the image(i.e. the black pixels) in the two perpendiculars drawn from the same point(along x and y-axis). Is there any function that I can use?



2 Commenti
Jan
il 17 Gen 2018
I do not understand the question. What is "the coloured area"? Do you mean the black pixels which are under the green bars? Or inside the rectangle built by the green bars?
Risposta accettata
Image Analyst
il 18 Gen 2018
Convert your calibrated x,y into rows and columns, then make two masks and AND them together and use sum() to count pixels
yellowMask = rectangleMask & ~blackPolygonMask;
numYellowPixels = sum(yellowMask(:))
0 Commenti
Più risposte (0)
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!