Community Profile

# Jeff E

### Genentech, Inc.

Last seen: 2 months ago Active since 2011

All

#### Content Feed

View by

How can calculate the average diamter of below image using matlab?
I'd start by looking at the regionprops function. Particularly, the "EquivDiameter", "MaxFeretProperties", and "MinFeretPropert...

3 years ago | 0

How to make image background white?
I would start by closing in small gaps to get a solid hand. imgin_close = imclose(imgin, strel('square', 3)); Then I would fin...

4 years ago | 0

| accepted

How to fill an object with the same color as surrounding pixels?
If you're always dealing with pixels regions that have the same values, then the below should work: Im1=imread('Im1.bmp'); ...

8 years ago | 0

| accepted

How to avoid dates being writen in scientific notation?
If you really want it as an integer: m = uint64(str2num(datestr([2015,8,10,12,0,0],'yyyymmddhhMM')));

8 years ago | 0

| accepted

Overlaying a semi-transparent color over an image

8 years ago | 0

Trouble Removing Uneven Background Lighting from Image
Try using imbothat instead of imtophat, with a slightly larger kernel size. I2= imbothat(drop, strel('disk', 30)); worke...

8 years ago | 0

| accepted

what does allcentroids do?
This is pulling the various measurements (Area, Perimeters, Centroid coordinates) out of the cell array measurements, and puttin...

8 years ago | 0

to flip an image block across main diagonal line y=x
transpose img_block_diag = transpose(img_block);

8 years ago | 2

| accepted

standard deviation and mean of image
I'm assuming you are interested in the mean and S.D. of the *intensity* in the image. In which case, you would just take the me...

8 years ago | 1

| accepted

How to study the effectiveness of feature extraction ?
Manually identify the pores in a (small) set of images, and compare the two results. Ideally by looking at the overlapping and ...

8 years ago | 0

Stenosis Detection of Arteries
Not sure what you mean by discontinuity, but on way to obtain an average width would be the sum of the artery mask divided by th...

8 years ago | 1

Is there a way to disable plotting in Compiled Matlab code (using MCR)
The function ISDEPLOYED returns true when run in the MCR, false when run in Matlab So, if ~isdeployed plot([1 2] , [2...

8 years ago | 0

how to perform closing by reconstruction followed by opening by reconstruction
No, you cannot. Notice the multiple imcomplement calls after the imdilate step. These are necessary in the closing by reconstr...

9 years ago | 0

| accepted

Why imerode( ) is not giving intended results ?
Some (all?) morphological functions make assumptions about the value of pixels _beyond_ the border of the image in cases where t...

9 years ago | 0

Comparing 2 images intensities
The code below will take the hue and saturation values from image1, and the value from image2, and merge them into one new image...

9 years ago | 1

How to place image one after the other?
I would try the montage function. The only tricky part there is that you have to pass it an array of filenames, or single array...

9 years ago | 0

how to find robocup`s ball?
You're going about calculating perimeter in a roundabout fashion. Matlab can convert a specific part of a structure, in your ca...

9 years ago | 0

| accepted

I have question on how to edit pictures. What i am trying to do is read in two images to matlab and i am trying to replace a part a part one the first picture with a part from the second image.
Below is a simple way to just swap a portion of toyota_image, given the coordinates of a boundingbox (ttop = y coordinate of top...

10 years ago | 0

How to show Tiff stacks
You can read each tiff image in one at a time using imread (note I'm making some assumptions...like you do indeed have a multipa...

10 years ago | 5

| accepted

How do i transform/convert a structuring element to an binary image in Matlab?
>> se = strel('square',7); >> nhood = getnhood(se); >> whos('se' ,'nhood') Name Size Bytes Class ...

10 years ago | 0

| accepted

How to ascertain number of special characters in a string?
blah = ' This line contains * some & special ( chars_!@#'; idx = regexp(blah, '_|!|\*'); special_count = size(idx, 2); ...

10 years ago | 0

How to find distance in binary image?
Below is what I came up with, which is an average distance between objects for an entire image. An example of the distances bei...

10 years ago | 1

Filling gaps in binary images
If it really is just one pixel, then try this: BW2 = bwmorph(BW, 'bridge'); If it is more than one pixel, then take a lo...

10 years ago | 0

| accepted

Non-binary Edge Detection
You'll want to use the IMGRADIENT function.

10 years ago | 0

| accepted

Understanding montage() command settings
From the imagesc documentation, emphasis mine: The imagesc function scales image data to the full range of the *current* co...

10 years ago | 0

Does anyone Know how to deal with '.BIF' image files?
Unfortunately I do not. I can tell you, however, that these are most likely a proprietary format coming from a scanner made fro...

10 years ago | 0

image1.jpg, image2.jpg.....etc how?
counter = 1; %initialize filename increment vid = videoinput('winvideo',1); set(vid, 'ReturnedColorSpace', 'RGB'); ...

10 years ago | 0

| accepted

Making part of a column negative depending on another column
b_new = sign(a) .* b

10 years ago | 0

| accepted