X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 05 Sep 2007 10:10 PM by  anon
morphology close
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
05 Sep 2007 10:10 PM
    I used the morphology operation morph_close in the IDL, but these operation changes my data class . I input the data of FLOAT, but I get a INT result. How can I keep the result have the same data class as the original input data? thanks

    Deleted User



    New Member


    Posts:
    New Member


    --
    05 Sep 2007 10:10 PM
    MORPH_CLOSE, by itself, based on what it is functionally supposed to do, has no reason to return a non-integer data type. It is a simple implementation of: ERODE(DILATE(inputImageData)) where the following is stated about 'inputImageData': "If the parameter is not of byte type, a temporary byte copy is obtained. If neither of the keywords GRAY or VALUES is present, the image is treated as a binary image with all nonzero pixels considered as 1." Thus, DILATE and MORPH_CLOSE never store any original floating point values. If it is not the output values that are bothering you, but just the datatype they are stored in, you can obviously use a simple conversion function, as in: myClosing = FLOAT(MORPH_CLOSE(inputDataImage, REPLICATE(1,3,3))) James Jones
    You are not authorized to post a reply.