Highlighting a Region of interest and getting the average Hue value ?
Taking the mean of hues is not as simple as described, and it's likely an unnecessary complication. H is a circular continuum. ...

ongeveer een maand ago | 0

row that increases more every element
Here's my guess: A = randi([10 20], 1,10) B = cumsum(A) % cumulative sum of A

ongeveer een maand ago | 0

extracting mean pixel value from an image
This might be a start, but bear in mind how fragile this will be if the colors change or the swatch becomes rotated or something...

ongeveer een maand ago | 2

| accepted

Masking multiple parts of image
As for creating a mask with multiple circular regions, you can use the ROI tools. You could do this interactively something l...

ongeveer een maand ago | 1

| accepted

How to change white on the outside to black?
Some of the objects are connected to the surrounding white blob. You'll need to deal with that. You might be able to do someth...

ongeveer een maand ago | 0

| accepted

Can I convert shades of red (Pink, Red, Maroon) in this RGB image to one single color, lets say blue?
Greetings from the distant future. Since the question leaves some details unknown and OP likely no longer needs the answer, I'm...

ongeveer een maand ago | 0

Invert even and odd columns in an image
Depends what you need. "Inverting even and odd column positions" might be interpreted a few different ways. By simply doing a ...

ongeveer 2 maanden ago | 1

| accepted

Apply Average Filter on Image with just next-before 5 columns
Consider the example: % a simple test image with a single white pixel in the center inpict = zeros(13); inpict(7,7) = 1; %...

ongeveer 2 maanden ago | 1

| accepted

How to remove the white background blobs touching the border of the image?
I don't know why you have a big white border on your image, or why your binarized image is uint8 RGB -- or why the apparent pixe...

ongeveer 2 maanden ago | 0

App Designer change colormap
I'm going to guess it's complaining about the missing handle on the gray2 line. If so, then do this: gray2 = flipud(gray(256))...

ongeveer 2 maanden ago | 0

| accepted

Editing Legend Items for hatchfill2
There are a couple examples in the answers here: https://www.mathworks.com/matlabcentral/answers/478956-getting-hatchfill-to-pr...

ongeveer 2 maanden ago | 0

legend line colors don't change
You need to give the line object handles to legend() to be sure it's picking the right objects. % THE APPLICATION: THIS IS NO...

ongeveer 2 maanden ago | 0

| accepted

Using imread and plot grayscale image
Tools like imshow(), image(), imagesc() will display single-channel (grayscale) images with the current colormap. In your case,...

ongeveer 2 maanden ago | 1

| accepted

what percentage of reduction in image size resulting from switching from the YCvCr colour space to RGB ?
If we're talking about "size" as in geometry (i.e. number of pixel elements), then if the YCbCr is not downsampled, then the ima...

ongeveer 2 maanden ago | 1

How do I remove the spaces between concatenated images. they are too wide but i want the image to appear as 1 after concatenation
Depending on what your needs are, you can use montage(), imtile(), or something else. Instead of trying to display images one a...

ongeveer 2 maanden ago | 0

How can I represent points and lines in 3 dimensions?
Either move the hold on statement after the first call to plot3(), or issue a view(3) command after plotting. Creating a pi...

ongeveer 2 maanden ago | 1

| accepted

How to scan matrix in spiral way?
There is a demo function that can generate NxN arrays in an outward spiral. That could be used (with some arithmetic and flips/...

ongeveer 2 maanden ago | 0

| accepted

can someone help me with dithering ? I'm trying to do random dithering, I want to do halftone and pattern too, but I'm stuck at random
I don't know what your setPixel() and getPixel() functions are, or why you're incrementing a counter variable that's apparently ...

ongeveer 2 maanden ago | 1

| accepted

hi ,I processed images on a folder. Now I want to save all the processed photos in the folder, but only the last photo is saved, what should I do?
Considering that there's missing code and open scopes, we're left to guess whether anything is inside of a loop or not. Either ...

ongeveer 2 maanden ago | 1

How can I overlap two images/pictures in Matlab?
There's an awful lot of traffic on this question. I don't know that passers-by actually have the same intent, but let's assume ...

ongeveer 2 maanden ago | 0

How to crop image by specific size and location ?
The rect parameter given to imcrop is [xoffset yoffset xwidth ywidth] I = imread('https://www.mathworks.com/matlabcentral/answe...

ongeveer 2 maanden ago | 0

| accepted

Hi, can i know how to find the orientation of an object?
Well, here's this. It's not robust, but then again, the test image isn't a real process image either, so I'm going to consider ...

ongeveer 2 maanden ago | 0

| accepted

How to make subplot size bigger?
Disregarding subplot arrangement, the edges are obscuring the faces due to the mesh resolution. figure colormap(parula(256))...

ongeveer 2 maanden ago | 0

Combine masked images into one, with each mask having a unique color.
If those would work for you, then you might also consider something like these: % do a simple mean of colored frames % a set...

ongeveer 2 maanden ago | 0

| accepted

removing some data in a 4d plot
You have to apply the same operation to all of the vectors. load 4dplot.txt x = X4dplot(:,1); ...

ongeveer 2 maanden ago | 0

| accepted

Create Size 256 × 150 image that have 256 colors on it starting 0 till 255 (the first row is black, the last row is white, and in between all the gray shades).
Something like this: A = uint8(repmat((0:255).',[1 150])); imshow(A)

ongeveer 2 maanden ago | 0

| accepted

How to count the number of pixels in each section of an image set?
Depending on what your images are like and what you need, this may be a start. You can calculate the number of true (nonzero) p...

ongeveer 2 maanden ago | 0

Mirror about Y axis
Something like this: a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14]; b = [1 2 3 4 5 6 7 8 9 10 11 12 13 14]; plot(a,b); hax = gc...

ongeveer 2 maanden ago | 0

| accepted