Beantwortet
GUIDE brightness/contrast function explained
I wouldn't say the code "works perfectly", since it doesn't do what is implied that it does -- though in its defense, its lack o...

etwa 4 Jahre vor | 0

Beantwortet
How do I get the value of C and ws in adaptive thresholding?
You have to select them based on the image content and your own intent. Refer to the documentation: https://homepages.inf.ed.a...

etwa 4 Jahre vor | 0

Beantwortet
add a moving image over a plotted trajectory
Assuming you actually want it to move in real time, this should be a start x = 0:pi/100:2*pi; y = sin(x); plot(x, y); hold on...

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to calculate the total pixel value in volume segmentation
I'm not quite sure if this is what you're after, but this: pnz = nnz(P); will give you the total number of nonzero elements in...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
one of my nested functions isnt recognising a function made in another function? i know the codes messy and could be improved but i just want to make it work first
Since I don't even know how to call the function or what it's supposed to do, I can't really do much but point out problems and ...

etwa 4 Jahre vor | 0

Beantwortet
How to access images(like Image1,Image2...)from a folder and pass through a code in Matlab?
You created a variable called imgName, but you're not using it. input_image = imread(imgName,'.jpg'); Of course, since this ...

etwa 4 Jahre vor | 0

Beantwortet
How do I add "color" to an image?
There really isn't anything in base MATLAB or IPT for doing color adjustment. I'm not familiar with Photoshop, and don't have...

etwa 4 Jahre vor | 0

Beantwortet
How can I change the color of the hair such that it has the same texture as the original hair?
There are a number of things going wrong here. I kind of wish this were active. Let's start with OP's example. Since the or...

etwa 4 Jahre vor | 0

Beantwortet
pixelation
It can be simple enough: inpict = imread('peppers.png'); sz = size(inpict); blocksize = [10 10]; outpict = imresize(inpict...

etwa 4 Jahre vor | 0

Beantwortet
How to display Y, Cb and Cr components of an image?
While I agree with Image Analyst that grayscale representations of the chroma channels are accurate, easier to read, and should ...

etwa 4 Jahre vor | 0

Beantwortet
How to change 1 channel image to 3 channel
Alternative to using cat(), the same can also be done a couple other ways. You can use repmat() rgbpict = repmat(graypict,[1...

etwa 4 Jahre vor | 0

Beantwortet
how to preserve RGB values of an image while making it gray image
You don't. When you convert a color image to grayscale, you are discarding the color information. It's gone. If you want to...

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
someone who can help me to correct my problem please????
Since n is defined, and you're using cell mode, then I have to assume the problem is that you're running the last code section b...

etwa 4 Jahre vor | 0

Beantwortet
how to convert a gray scale image to color image using matlab
To answer the original intent of the question, there is no trivial way to return a grayscale image back to its original color. ...

etwa 4 Jahre vor | 1

Beantwortet
switch between colors on image
A lot of people are looking at this old thread, so I assume their needs are not necessarily the same as the OP. I think when mo...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to get all possible permutations in binary format?
I'm not sure, but are you thinking of something like this? B = [0,1,0;0,0,1;1,1,0;0,1,1;1,0,1;1,0,0]; % all permutations of ...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to avoid color repetition in plotting lines
The colors used by line plots are drawn from the 'colororder' property of the parent axes. By default, this is set to lines(7),...

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
Index in position 1 exceeds array bounds. Erroy when trying to plot rectangle.
I don't know why you decided to suddenly abandon your indexing scheme. Replace all this: n = numberRooms(1,1); for i = 1:1:n ...

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to find closest values within a matirx
I'm not really sure what you mean by "closest values". Maybe you're talking about inpainting? A = [NaN NaN NaN 7 8 9; NaN...

etwa 4 Jahre vor | 0

Beantwortet
How to delete a file I submitted on File Exchange ?
If you just want to delete the whole submission, there should be a button on the upper right. If you have a submission cons...

etwa 4 Jahre vor | 0

Beantwortet
Red channel compensation in underwater images in-order to implement in matlab?
As far as I understand it, there isn't one equation; there are various techniques of differing complexity. I don't see any that...

etwa 4 Jahre vor | 2

| akzeptiert

Beantwortet
How do I assign colours to every plotted dot if I have the colours as cell arrays
Normally, you'd do this by using a colortable (or a list of indices into a color table) with scatter(). x = 1:4; y = 1:4; c...

etwa 4 Jahre vor | 0

Beantwortet
2D Graph Scaling
I don't see why you can't just use semilogy() or loglog() to do the plot. https://www.mathworks.com/help/matlab/ref/semilogy.ht...

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
Isolate low contrast rectangle of known size from image
This might be an idea for a way. With only one test case, it's hard to tell if this is even remotely robust. I imagine it can...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Populate a 1000x1000 array with rows where a value is added every second, then third etc. column
If you were getting a bunch of ones, you were probably pretty close. N = 1000; everyN = zeros(N); for n = 1:N everyN(n...

etwa 4 Jahre vor | 2

Beantwortet
how to change specific color define by the user to black in matlab?
I answered a similar question earlier: https://www.mathworks.com/matlabcentral/answers/1706905-how-can-i-change-the-red-chips-t...

etwa 4 Jahre vor | 0

Beantwortet
Bar Fill Pattern problem in plot
There are tools on the File Exchange for doing that. https://www.mathworks.com/matlabcentral/fileexchange/53593-hatchfill2 Se...

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
How can I change the red chips to black as the red and orange overlap a lot and the edges and shadows are still red/orange with my code.
Continuing from this question, I suppose that the masking can be better done in something other than RGB. Getting perfect fits ...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Can an RGB image be stored as 2D matrix without converting to greyscale image?
I imagine another obvious interpretation of the question would be "can I store a color image in a 2D array?" with no stipulation...

etwa 4 Jahre vor | 0

Beantwortet
how to reduce the brightness of an image?
There are many different ways, using both simplistic direct methods and purpose-built tools. The answers in this related questi...

etwa 4 Jahre vor | 0

Mehr laden